FlatToolbatTextAndImageButton.xaml 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <UserControl x:Class="MuchInfo.Chart.Infrastructure.Controls.FlatToolbatTextAndImageButton"
  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="*" />
  11. <ColumnDefinition Width="auto" />
  12. </Grid.ColumnDefinitions>
  13. <Border x:Name="theBorder"
  14. Grid.ColumnSpan="2"
  15. Margin="0,1,0,1"
  16. Background="Transparent"
  17. BorderBrush="LightSteelBlue"
  18. BorderThickness="0"
  19. CornerRadius="2"
  20. MouseEnter="theBorder_MouseEnter"
  21. MouseLeave="theBorder_MouseLeave"
  22. MouseLeftButtonDown="theBorder_MouseLeftButtonDown"
  23. MouseLeftButtonUp="theBorder_MouseLeftButtonUp"
  24. Padding="1">
  25. <StackPanel x:Name="theStack" Orientation="Horizontal">
  26. <Image x:Name="theImage" Margin="3,0,3,0" />
  27. <TextBlock x:Name="theText"
  28. Margin="3,0,3,0"
  29. VerticalAlignment="Center" />
  30. </StackPanel>
  31. </Border>
  32. <Border x:Name="Seperator"
  33. Grid.Column="2"
  34. Width="1"
  35. Margin="3,4,3,4"
  36. BorderBrush="DarkGray"
  37. BorderThickness="1"
  38. Visibility="Collapsed" />
  39. <Border x:Name="borderDisable"
  40. Grid.ColumnSpan="2"
  41. Margin="0,1,0,1"
  42. Background="#99888888"
  43. CornerRadius="2"
  44. Visibility="Collapsed" />
  45. </Grid>
  46. </UserControl>