MFC4Process.xaml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <UserControl x:Class="Aitex.Core.UI.Control.MFC4Process"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:cv="clr-namespace:Aitex.Core.UI.Converters"
  7. mc:Ignorable="d"
  8. d:DesignHeight="25" d:DesignWidth="50">
  9. <UserControl.Resources>
  10. <cv:MFC4ContentConvert x:Key="MFC4ContentConvert"/>
  11. <cv:MFC4ColorConvert x:Key="MFC4ColorConvert" />
  12. <cv:MFC4ToolTipConvert x:Key="MFC4ToolTipConvert" />
  13. </UserControl.Resources>
  14. <Canvas>
  15. <Button Height="25" Width="50" Style="{x:Null}" >
  16. <!--<Button.Foreground>
  17. <MultiBinding Converter="{StaticResource MFC4ColorConvert}">
  18. <Binding Path="MfcSourceData"/>
  19. <Binding Path="MfcDiluteData"/>
  20. <Binding Path="MfcInjectData"/>
  21. <Binding Path="IsAirFlowMultiControlMFC"/>
  22. </MultiBinding>
  23. </Button.Foreground>-->
  24. <Button.BorderBrush>
  25. <MultiBinding Converter="{StaticResource MFC4ColorConvert}">
  26. <Binding Path="MfcSourceData"/>
  27. <Binding Path="MfcDiluteData"/>
  28. <Binding Path="MfcInjectData"/>
  29. <Binding Path="IsAirFlowMultiControlMFC"/>
  30. </MultiBinding>
  31. </Button.BorderBrush>
  32. <Button.Content>
  33. <MultiBinding Converter="{StaticResource MFC4ContentConvert}">
  34. <Binding Path="MfcSourceData"/>
  35. <Binding Path="MfcDiluteData"/>
  36. <Binding Path="MfcInjectData"/>
  37. <Binding Path="IsAirFlowMultiControlMFC"/>
  38. </MultiBinding>
  39. </Button.Content>
  40. <Button.ToolTip>
  41. <MultiBinding Converter="{StaticResource MFC4ToolTipConvert}">
  42. <Binding Path="MfcSourceData"/>
  43. <Binding Path="MfcDiluteData"/>
  44. <Binding Path="MfcInjectData"/>
  45. <Binding Path="IsAirFlowMultiControlMFC"/>
  46. </MultiBinding>
  47. </Button.ToolTip>
  48. </Button>
  49. </Canvas>
  50. </UserControl>