aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Resources
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-01-24 19:32:14 +0200
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-01-24 19:32:14 +0200
commitd36a5ab7115ec53405622e4437cd3f8f615d515d (patch)
tree690fc0834e6916a3597c0fd84830f8d34a56eb42 /Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Resources
parent11e64f69d00d84974bb09bef6f921c7eeab7c47e (diff)
downloadTango-d36a5ab7115ec53405622e4437cd3f8f615d515d.tar.gz
Tango-d36a5ab7115ec53405622e4437cd3f8f615d515d.zip
Added support for multi sensor frame on developer module graph.
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Resources')
-rw-r--r--Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Resources/MaterialDesign.xaml40
1 files changed, 40 insertions, 0 deletions
diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Resources/MaterialDesign.xaml b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Resources/MaterialDesign.xaml
index cc18c31c5..8c5464930 100644
--- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Resources/MaterialDesign.xaml
+++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.Common/Resources/MaterialDesign.xaml
@@ -267,6 +267,46 @@
</Border>
</DataTemplate>
+ <!--Graph Legend Template-->
+ <DataTemplate x:Key="graphLegendTemplate">
+ <Border Width="20" Height="20" Margin="2">
+ <Grid>
+ <ToggleButton IsChecked="{Binding IsVisible}" Padding="0" Margin="0" Background="Transparent" BorderBrush="{x:Null}" BorderThickness="0">
+ <ToggleButton.Style>
+ <Style TargetType="ToggleButton">
+ <Setter Property="Template">
+ <Setter.Value>
+ <ControlTemplate>
+ <Grid Background="Transparent">
+ <Grid>
+ <Ellipse HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Fill="{StaticResource graphLegendBackground}" StrokeThickness="1">
+ <Ellipse.Style>
+ <Style TargetType="Ellipse">
+ <Style.Triggers>
+ <DataTrigger Binding="{Binding IsVisible}" Value="True">
+ <Setter Property="Stroke" Value="{Binding Stroke}"></Setter>
+ </DataTrigger>
+ <DataTrigger Binding="{Binding IsVisible}" Value="False">
+ <Setter Property="Stroke" Value="Transparent"></Setter>
+ </DataTrigger>
+ </Style.Triggers>
+ </Style>
+ </Ellipse.Style>
+ </Ellipse>
+ <TextBlock FontSize="8" Text="{Binding Name}" VerticalAlignment="Center" Foreground="Black" FontWeight="DemiBold" HorizontalAlignment="Center"></TextBlock>
+ </Grid>
+ </Grid>
+ </ControlTemplate>
+ </Setter.Value>
+ </Setter>
+ </Style>
+ </ToggleButton.Style>
+ </ToggleButton>
+ </Grid>
+ </Border>
+ </DataTemplate>
+ <!--Graph Legend Template-->
+
<!--Extensions-->
</ResourceDictionary>