CenterControl.xaml 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <UserControl
  2. x:Class="SHJX.Service.Librarys.MainLibrarys.CenterControl"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  7. mc:Ignorable="d">
  8. <Viewbox>
  9. <Grid Width="100" Height="100">
  10. <Grid.RowDefinitions>
  11. <RowDefinition Height="1*" />
  12. <RowDefinition Height="4*" />
  13. </Grid.RowDefinitions>
  14. <Grid.ColumnDefinitions>
  15. <ColumnDefinition />
  16. </Grid.ColumnDefinitions>
  17. <Border
  18. x:Name="CBorder"
  19. Grid.Row="0"
  20. Grid.RowSpan="2"
  21. Grid.Column="0"
  22. Background="#99CCCC"
  23. CornerRadius="1" />
  24. <Border BorderBrush="AliceBlue" BorderThickness="0,0,0,2">
  25. <Grid
  26. Grid.Row="0"
  27. Grid.Column="0"
  28. Background="Transparent">
  29. <TextBlock
  30. x:Name="TagName"
  31. HorizontalAlignment="Center"
  32. VerticalAlignment="Center"
  33. FontFamily="幼圆"
  34. FontWeight="UltraBold"
  35. Foreground="AliceBlue" />
  36. </Grid>
  37. </Border>
  38. <Grid
  39. Grid.Row="1"
  40. Grid.Column="0"
  41. Background="Transparent">
  42. <TextBlock
  43. x:Name="LocalName"
  44. HorizontalAlignment="Center"
  45. VerticalAlignment="Center"
  46. FontSize="30"
  47. FontWeight="Bold"
  48. Foreground="AliceBlue" />
  49. </Grid>
  50. </Grid>
  51. </Viewbox>
  52. </UserControl>