Initial Commit
This commit is contained in:
22
Charts/Legend.xaml
Normal file
22
Charts/Legend.xaml
Normal file
@@ -0,0 +1,22 @@
|
||||
<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>
|
||||
Reference in New Issue
Block a user