ChartDrawingToolbarButton.xaml 1.3 KB

12345678910111213141516171819202122232425262728293031
  1. <UserControl x:Class="MuchInfo.Chart.WPF.Controls.Drawing.ChartDrawingToolbarButton"
  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. <Border x:Name="Border"
  7. Margin="1"
  8. Background="Transparent"
  9. BorderBrush="dimGray"
  10. BorderThickness="1"
  11. CornerRadius="2"
  12. MouseEnter="Border_MouseEnter"
  13. MouseLeave="Border_MouseLeave"
  14. MouseLeftButtonDown="Border_MouseLeftButtonDown">
  15. <Grid>
  16. <Grid.ColumnDefinitions>
  17. <ColumnDefinition Width="auto" />
  18. <ColumnDefinition Width="auto" />
  19. <ColumnDefinition Width="*" />
  20. </Grid.ColumnDefinitions>
  21. <Image x:Name="ButtonImage" Margin="2" />
  22. <TextBlock x:Name="myText"
  23. Grid.Column="1"
  24. Margin="2,0,10,0"
  25. VerticalAlignment="Center"
  26. Foreground="White"
  27. Text="text"
  28. Visibility="Collapsed" />
  29. </Grid>
  30. </Border>
  31. </UserControl>