23 lines
1.1 KiB
Plaintext
23 lines
1.1 KiB
Plaintext
|
<UserControl x:Class="MECF.Framework.UI.Client.CenterViews.Controls.LED"
|
||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||
|
xmlns:controls="clr-namespace:MECF.Framework.UI.Client.CenterViews.Controls"
|
||
|
mc:Ignorable="d"
|
||
|
d:DesignHeight="300" d:DesignWidth="300">
|
||
|
<UserControl.Resources>
|
||
|
<controls:LedConverter x:Key="ledConverter" />
|
||
|
</UserControl.Resources>
|
||
|
<Grid x:Name="root">
|
||
|
<Ellipse HorizontalAlignment="Center" VerticalAlignment="Center" Stroke="Gray" StrokeThickness="2" Width="15"
|
||
|
Height="15">
|
||
|
<Ellipse.Fill>
|
||
|
<MultiBinding Converter="{StaticResource ledConverter}">
|
||
|
<Binding Path="On" />
|
||
|
<Binding Path="IsRed" />
|
||
|
</MultiBinding>
|
||
|
</Ellipse.Fill>
|
||
|
</Ellipse>
|
||
|
</Grid>
|
||
|
</UserControl>
|