ChartToolbarExpander.xaml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <UserControl x:Class="MuchInfo.Chart.WPF.Controls.Drawing.ChartToolbarExpander"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. mc:Ignorable="d">
  7. <Grid>
  8. <Grid.ColumnDefinitions>
  9. <ColumnDefinition Width="Auto" />
  10. <ColumnDefinition Width="*" MinWidth="3" />
  11. </Grid.ColumnDefinitions>
  12. <Border x:Name="borderHeader"
  13. Margin="2,0,0,0"
  14. VerticalAlignment="Center"
  15. Background="Transparent"
  16. BorderBrush="LightSteelBlue"
  17. BorderThickness="0"
  18. CornerRadius="2"
  19. MouseEnter="borderHeader_MouseEnter"
  20. MouseLeave="borderHeader_MouseLeave"
  21. MouseLeftButtonDown="borderHeader_MouseLeftButtonDown"
  22. Padding="1">
  23. <Grid x:Name="ButtonGrid" Margin="1,3,5,3">
  24. <Grid.ColumnDefinitions>
  25. <ColumnDefinition Width="auto" />
  26. <ColumnDefinition Width="auto" />
  27. <ColumnDefinition Width="auto" />
  28. </Grid.ColumnDefinitions>
  29. <Image x:Name="imgDraw"
  30. Margin="1,0,1,0"
  31. VerticalAlignment="Center"
  32. Stretch="None" />
  33. <TextBlock x:Name="DrawTextBlock"
  34. Grid.Column="1"
  35. Margin="2,0,2,0"
  36. VerticalAlignment="Center"
  37. Foreground="White"
  38. Visibility="Collapsed" />
  39. <!-- Text="{DynamicResource DrawingTool_Expander_Title}" -->
  40. <Path x:Name="pathDropArrow"
  41. Grid.Column="2"
  42. VerticalAlignment="Center"
  43. Fill="White"
  44. Visibility="Collapsed">
  45. <Path.Data>
  46. <PathGeometry>
  47. <PathGeometry.Figures>
  48. <PathFigureCollection>
  49. <PathFigure StartPoint="6,0">
  50. <PathFigure.Segments>
  51. <LineSegment Point="14,0" />
  52. <LineSegment Point="10,5" />
  53. <LineSegment Point="6,0" />
  54. </PathFigure.Segments>
  55. </PathFigure>
  56. </PathFigureCollection>
  57. </PathGeometry.Figures>
  58. </PathGeometry>
  59. </Path.Data>
  60. </Path>
  61. <Path x:Name="pathUpArrow"
  62. Grid.Column="2"
  63. VerticalAlignment="Center"
  64. Fill="White">
  65. <Path.Data>
  66. <PathGeometry>
  67. <PathGeometry.Figures>
  68. <PathFigureCollection>
  69. <PathFigure StartPoint="6,5">
  70. <PathFigure.Segments>
  71. <LineSegment Point="14,5" />
  72. <LineSegment Point="10,0" />
  73. <LineSegment Point="6,5" />
  74. </PathFigure.Segments>
  75. </PathFigure>
  76. </PathFigureCollection>
  77. </PathGeometry.Figures>
  78. </PathGeometry>
  79. </Path.Data>
  80. </Path>
  81. <!-- <TextBlock Text="X" Foreground="Red" Margin="2,-2,2,-2"></TextBlock> -->
  82. </Grid>
  83. </Border>
  84. <Border Grid.Column="1"
  85. Margin="4,3,0,3"
  86. HorizontalAlignment="Right"
  87. BorderBrush="DimGray"
  88. BorderThickness="1,0,1,0" />
  89. </Grid>
  90. </UserControl>