FlatToolbarTextButton.xaml 1.4 KB

1234567891011121314151617181920212223242526272829303132
  1. <UserControl x:Class="MuchInfo.Chart.Infrastructure.Controls.FlatToolbarTextButton"
  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">
  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="stackText"
  26. VerticalAlignment="Center"
  27. Orientation="Vertical">
  28. <TextBlock x:Name="theText" Margin="3,0,3,0" />
  29. </StackPanel>
  30. </Border>
  31. </Grid>
  32. </UserControl>