CenterControl.xaml 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <UserControl
  2. x:Class="SHJX.Service.Library.Views.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="120" Height="120">
  10. <Grid.RowDefinitions>
  11. <RowDefinition Height="1*" />
  12. <RowDefinition Height="1.6*" />
  13. </Grid.RowDefinitions>
  14. <Border
  15. x:Name="CBorder"
  16. Grid.Row="0"
  17. Grid.RowSpan="2"
  18. Grid.Column="0"
  19. Margin="3"
  20. Background="#929FDE"
  21. CornerRadius="35" />
  22. <Border
  23. Margin="15,0"
  24. BorderBrush="#F6FBFF"
  25. BorderThickness="0,0,0,5">
  26. <Grid
  27. Grid.Row="0"
  28. Grid.Column="0"
  29. Background="Transparent" Margin="0,10,0,0">
  30. <TextBlock
  31. x:Name="TagName"
  32. HorizontalAlignment="Center"
  33. VerticalAlignment="Center"
  34. FontWeight="Bold"
  35. FontSize="16"
  36. Foreground="#F6FBFF" />
  37. </Grid>
  38. </Border>
  39. <Grid
  40. Grid.Row="1"
  41. Grid.Column="0"
  42. Background="Transparent">
  43. <TextBlock
  44. x:Name="LocalName"
  45. HorizontalAlignment="Center"
  46. VerticalAlignment="Center"
  47. FontSize="30"
  48. FontWeight="Bold"
  49. Foreground="#F6FBFF" />
  50. </Grid>
  51. </Grid>
  52. </Viewbox>
  53. </UserControl>