LED.xaml 1.1 KB

1234567891011121314151617181920212223
  1. <UserControl x:Class="MECF.Framework.UI.Client.CenterViews.Controls.LED"
  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:controls="clr-namespace:MECF.Framework.UI.Client.CenterViews.Controls"
  7. mc:Ignorable="d"
  8. d:DesignHeight="300" d:DesignWidth="300">
  9. <UserControl.Resources>
  10. <controls:LedConverter x:Key="ledConverter" />
  11. </UserControl.Resources>
  12. <Grid x:Name="root">
  13. <Ellipse HorizontalAlignment="Center" VerticalAlignment="Center" Stroke="Gray" StrokeThickness="2" Width="15"
  14. Height="15">
  15. <Ellipse.Fill>
  16. <MultiBinding Converter="{StaticResource ledConverter}">
  17. <Binding Path="On" />
  18. <Binding Path="IsRed" />
  19. </MultiBinding>
  20. </Ellipse.Fill>
  21. </Ellipse>
  22. </Grid>
  23. </UserControl>