A cross-platform UI framework for .NET
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

21 lines
908 B

<UserControl xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="ControlCatalog.Pages.RectanglePage">
<StackPanel Orientation="Vertical" Spacing="4">
<TextBlock Classes="h1">Rectangle</TextBlock>
<TextBlock Classes="h2">A control which represents a rectangle with a fill and a stroke.</TextBlock>
<StackPanel Orientation="Vertical"
Margin="0,16,0,0"
HorizontalAlignment="Center"
Spacing="16">
<Rectangle Width="200" Height="32" Fill="Red" Stroke="Blue" StrokeThickness="{Binding #StrokeThickness.Value}"/>
<Grid ColumnDefinitions="Auto,*">
<TextBlock Grid.Column="0" Text="Stroke thickness"/>
<Slider Grid.Column="1" Name="StrokeThickness" Maximum="10" Value="1"/>
</Grid>
</StackPanel>
</StackPanel>
</UserControl>