BorderPage.xaml 1.2 KB

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