Files
DynamicDataDisplay/Charts/Legend.xaml
2024-02-23 00:46:06 -05:00

23 lines
1.3 KiB
XML

<ContentControl x:Class="Microsoft.Research.DynamicDataDisplay.Legend"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:l="clr-namespace:Microsoft.Research.DynamicDataDisplay"
Panel.ZIndex="100"
>
<ContentControl.Style>
<Style TargetType="{x:Type ContentControl}" BasedOn="{StaticResource {x:Type ContentControl}}">
<Setter Property="Visibility" Value="Hidden"/>
</Style>
</ContentControl.Style>
<Canvas>
<Grid Name="grid" Canvas.Top="{Binding Path=LegendTop, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type l:Legend}}}"
Canvas.Bottom="{Binding Path=LegendBottom, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type l:Legend}}}"
Canvas.Left="{Binding Path=LegendLeft, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type l:Legend}}}"
Canvas.Right="{Binding Path=LegendRight, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type l:Legend}}}"
>
<Rectangle Name="shadowRect" RadiusX="5" RadiusY="5" Stroke="Black" StrokeThickness="1" Fill="White"/>
<StackPanel x:Name="stackPanel" Margin="3"/>
</Grid>
</Canvas>
</ContentControl>