aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/FSE/Modules/Tango.FSE.Diagnostics/Project/Widgets/Output/OutputWidgetView.xaml
blob: 3bd64d0414152ce87d25bf7d1fc00bec72681c72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<UserControl x:Class="Tango.FSE.Diagnostics.Project.Widgets.Output.OutputWidgetView"
             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:visuals="clr-namespace:Tango.Visuals;assembly=Tango.Visuals"
             xmlns:local="clr-namespace:Tango.FSE.Diagnostics.Project.Widgets.Output"
             mc:Ignorable="d" 
             d:DesignHeight="100" d:DesignWidth="200" d:DataContext="{d:DesignInstance Type=local:OutputWidget,IsDesignTimeCreatable=False}">
    <Grid>
        <Viewbox>
            <UniformGrid Columns="2">

                <Grid>
                    <Ellipse Width="100" Height="100" Fill="{StaticResource FSE_PrimaryBackgroundMidBrush}"></Ellipse>
                    <visuals:Led Width="100" Height="100" IsChecked="{Binding EffectiveValue}" IsHitTestVisible="False" />
                </Grid>

                <visuals:AnalogSwitch Cursor="Hand" RenderTransformOrigin="0.5,0.5" Grid.Column="1" IsChecked="{Binding Value,Mode=TwoWay}"/>
            </UniformGrid>
        </Viewbox>
    </Grid>
</UserControl>