ChartMenuItem.xaml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <UserControl x:Class="MuchInfo.Chart.WPF.Controls.Utilities.ChartMenuItem"
  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 x:Name="LayoutRoot" Background="#FFF0F0F0">
  8. <Grid.ColumnDefinitions>
  9. <ColumnDefinition Width="26" />
  10. <ColumnDefinition Width="2" />
  11. <ColumnDefinition Width="*" />
  12. <ColumnDefinition Width="auto" />
  13. </Grid.ColumnDefinitions>
  14. <Border x:Name="Hover"
  15. Grid.ColumnSpan="4"
  16. Padding="1,0,1,0"
  17. Visibility="Collapsed">
  18. <Rectangle RadiusX="4"
  19. RadiusY="4"
  20. Stroke="#FF96D9F9">
  21. <Rectangle.Fill>
  22. <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
  23. <LinearGradientBrush.GradientStops>
  24. <GradientStop Offset="0" Color="#FFF1F8FB" />
  25. <GradientStop Offset="1" Color="#FFBAE4F6" />
  26. </LinearGradientBrush.GradientStops>
  27. </LinearGradientBrush>
  28. </Rectangle.Fill>
  29. </Rectangle>
  30. </Border>
  31. <Border>
  32. <Border.Background>
  33. <LinearGradientBrush StartPoint="0,0" EndPoint="1,0">
  34. <LinearGradientBrush.GradientStops>
  35. <GradientStop Offset="0" Color="whitesmoke" />
  36. <GradientStop Offset="1" Color="#FFD4D8E6" />
  37. </LinearGradientBrush.GradientStops>
  38. </LinearGradientBrush>
  39. </Border.Background>
  40. <Image x:Name="imgMenu"
  41. Grid.Column="0"
  42. HorizontalAlignment="Center"
  43. VerticalAlignment="Center" />
  44. </Border>
  45. <Rectangle Grid.Column="1"
  46. Width="1"
  47. Stroke="#FFA0A0B4" />
  48. <TextBlock x:Name="lblMenu"
  49. Grid.Column="2"
  50. MinWidth="80"
  51. Padding="8,4,12,4"
  52. Text="Hello" />
  53. </Grid>
  54. </UserControl>