| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- <UserControl x:Class="MuchInfo.Chart.WPF.ChartPane"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006">
- <Grid x:Name="LayoutRoot">
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto" />
- <RowDefinition Height="*" />
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition x:Name="colLeft" Width="Auto" />
- <ColumnDefinition Width="*" />
- </Grid.ColumnDefinitions>
- <StackPanel x:Name="Legend"
- Grid.Column="1"
- Margin="5,0,0,0"
- Orientation="Horizontal">
- <Border x:Name="btnMore"
- Grid.Column="2"
- Width="47"
- Margin="1,1,1,1"
- VerticalAlignment="Bottom"
- Background="Transparent"
- BorderBrush="Gray"
- BorderThickness="1"
- CornerRadius="2"
- MouseEnter="btnMore_MouseEnter"
- MouseLeave="btnMore_MouseLeave"
- MouseLeftButtonDown="btnMore_MouseLeftButtonDown"
- Padding="3,0,3,0"
- Visibility="Collapsed">
- <StackPanel Orientation="Horizontal">
- <TextBlock Margin="0,-2,3,-2"
- VerticalAlignment="Center"
- Foreground="Gray"
- Text="More" />
- <Path x:Name="pathDropArrow"
- VerticalAlignment="Center"
- Fill="Gray">
- <Path.Data>
- <PathGeometry>
- <PathGeometry.Figures>
- <PathFigureCollection>
- <PathFigure StartPoint="0,0">
- <PathFigure.Segments>
- <LineSegment Point="8,0" />
- <LineSegment Point="4,5" />
- <LineSegment Point="0,0" />
- </PathFigure.Segments>
- </PathFigure>
- </PathFigureCollection>
- </PathGeometry.Figures>
- </PathGeometry>
- </Path.Data>
- </Path>
- </StackPanel>
- </Border>
- </StackPanel>
- <Border x:Name="btnRemovePane"
- Margin="3,1,3,2"
- BorderBrush="gray"
- BorderThickness="1"
- CornerRadius="2"
- MouseEnter="btnRemovePane_MouseEnter"
- MouseLeave="btnRemovePane_MouseLeave"
- MouseLeftButtonDown="btnRemovePane_MouseLeftButtonDown"
- MouseLeftButtonUp="btnRemovePane_MouseLeftButtonUp">
- <TextBlock x:Name="txtRemovePane"
- Margin="3,0,3,-1"
- VerticalAlignment="Center"
- FontSize="11"
- FontWeight="Bold"
- Foreground="Gray"
- Text="X" />
- </Border>
- <Canvas x:Name="PaintArea"
- Grid.Row="1"
- Grid.ColumnSpan="2"
- ClipToBounds="True"
- LostMouseCapture="PaintArea_LostMouseCapture"
- MouseEnter="PaintArea_MouseEnter"
- MouseLeave="PaintArea_MouseLeave"
- MouseLeftButtonDown="PaintArea_MouseLeftButtonDown"
- MouseLeftButtonUp="PaintArea_MouseLeftButtonUp"
- MouseMove="PaintArea_MouseMove"
- SizeChanged="PaintArea_SizeChanged" />
- </Grid>
- </UserControl>
|