10 changed files with 219 additions and 30 deletions
@ -1,38 +1,32 @@ |
|||||
<UserControl xmlns="https://github.com/avaloniaui"> |
<UserControl xmlns="https://github.com/avaloniaui"> |
||||
<StackPanel Orientation="Vertical" Gap="4"> |
<StackPanel Orientation="Vertical" Gap="4"> |
||||
<TextBlock Classes="h1">Border</TextBlock> |
<TextBlock Classes="h1">Border</TextBlock> |
||||
<TextBlock Classes="h2">A control which decorates a child with a border and background</TextBlock> |
<TextBlock Classes="h2">A control which decorates a child with a border and background</TextBlock> |
||||
|
|
||||
<StackPanel Orientation="Vertical" |
<StackPanel Orientation="Vertical" |
||||
Margin="0,16,0,0" |
Margin="0,16,0,0" |
||||
HorizontalAlignment="Center" |
HorizontalAlignment="Center" |
||||
Gap="16"> |
Gap="16"> |
||||
<Border BorderBrush="{DynamicResource ThemeAccentBrush}" BorderThickness="2" Padding="16"> |
<Border BorderBrush="{DynamicResource ThemeAccentBrush}" BorderThickness="2" Padding="16"> |
||||
<TextBlock>Border</TextBlock> |
<TextBlock>Border</TextBlock> |
||||
</Border> |
</Border> |
||||
<Border Background="{DynamicResource ThemeAccentBrush2}" |
<Border Background="{DynamicResource ThemeAccentBrush2}" |
||||
BorderBrush="{DynamicResource ThemeAccentBrush}" |
BorderBrush="{DynamicResource ThemeAccentBrush}" |
||||
BorderThickness="4" |
BorderThickness="4" |
||||
Padding="16"> |
Padding="16"> |
||||
<TextBlock>Border and Background</TextBlock> |
<TextBlock>Border and Background</TextBlock> |
||||
</Border> |
</Border> |
||||
<Border BorderBrush="{DynamicResource ThemeAccentBrush}" |
<Border BorderBrush="{DynamicResource ThemeAccentBrush}" |
||||
BorderThickness="4" |
BorderThickness="4" |
||||
CornerRadius="8" |
CornerRadius="8" |
||||
Padding="16"> |
Padding="16"> |
||||
<TextBlock>Rounded Corners</TextBlock> |
<TextBlock>Rounded Corners</TextBlock> |
||||
</Border> |
</Border> |
||||
<Border Background="{DynamicResource ThemeAccentBrush2}" |
<Border Background="{DynamicResource ThemeAccentBrush2}" |
||||
CornerRadius="8" |
CornerRadius="8" |
||||
Padding="16"> |
Padding="16"> |
||||
<StackPanel> |
<TextBlock>Rounded Corners</TextBlock> |
||||
<TextBlock FontFamily="res:/Fonts?assembly=ControlCatalog#Pixel Operator">Rounded Corners</TextBlock> |
</Border> |
||||
<TextBlock FontFamily="res:/Fonts?assembly=ControlCatalog#Pink Highway" FontWeight="Bold">Rounded Corners</TextBlock> |
</StackPanel> |
||||
<TextBlock FontFamily="res:/Fonts/Aspergit*.ttf?assembly=ControlCatalog#Aspergit" FontWeight="Bold">Rounded Corners</TextBlock> |
</StackPanel> |
||||
<TextBlock FontFamily="res:/Fonts/Aspergit*.ttf?assembly=ControlCatalog#Aspergit" FontWeight="Bold" FontStyle="Italic">Rounded Corners</TextBlock> |
|
||||
<TextBlock FontFamily="res:/Fonts/Aspergit*.ttf?assembly=ControlCatalog#Aspergit" FontStyle="Italic">Rounded Corners</TextBlock> |
|
||||
</StackPanel> |
|
||||
</Border> |
|
||||
</StackPanel> |
|
||||
</StackPanel> |
|
||||
</UserControl> |
</UserControl> |
||||
Loading…
Reference in new issue