BorderPage.xaml 1.4 KB

12345678910111213141516171819202122232425262728293031323334
  1. <UserControl xmlns="https://github.com/avaloniaui"
  2. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  3. x:Class="ControlCatalog.Pages.BorderPage">
  4. <StackPanel Orientation="Vertical" Spacing="4">
  5. <TextBlock Classes="h1">Border</TextBlock>
  6. <TextBlock Classes="h2">A control which decorates a child with a border and background</TextBlock>
  7. <StackPanel Orientation="Vertical"
  8. Margin="0,16,0,0"
  9. HorizontalAlignment="Center"
  10. Spacing="16">
  11. <Border BorderBrush="{DynamicResource ThemeAccentBrush}" BorderThickness="2" Padding="16">
  12. <TextBlock>Border</TextBlock>
  13. </Border>
  14. <Border Background="{DynamicResource ThemeAccentBrush2}"
  15. BorderBrush="{DynamicResource ThemeAccentBrush}"
  16. BorderThickness="4"
  17. Padding="16">
  18. <TextBlock>Border and Background</TextBlock>
  19. </Border>
  20. <Border BorderBrush="{DynamicResource ThemeAccentBrush}"
  21. BorderThickness="4"
  22. CornerRadius="8"
  23. Padding="16">
  24. <TextBlock>Rounded Corners</TextBlock>
  25. </Border>
  26. <Border Background="{DynamicResource ThemeAccentBrush2}"
  27. CornerRadius="8"
  28. Padding="16">
  29. <TextBlock>Rounded Corners</TextBlock>
  30. </Border>
  31. </StackPanel>
  32. </StackPanel>
  33. </UserControl>