55 lines
1.9 KiB
XML
55 lines
1.9 KiB
XML
<Window xmlns="https://github.com/avaloniaui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:pg="using:Avalonia.PropertyGrid.Controls"
|
|
xmlns:models="using:QuickStartExample.Models"
|
|
x:Class="QuickStartExample.MainWindow"
|
|
x:DataType="models:Vehicle"
|
|
Title="QuickStart - PropertyGrid Example"
|
|
Width="900"
|
|
Height="650">
|
|
|
|
<Grid RowDefinitions="Auto,*,Auto" Margin="15">
|
|
|
|
<!-- Header Section -->
|
|
<Border Grid.Row="0"
|
|
Padding="15"
|
|
Background="#0078D4"
|
|
CornerRadius="6"
|
|
Margin="0,0,0,15">
|
|
<StackPanel>
|
|
<TextBlock Text="PropertyGrid Quick Start Example"
|
|
FontSize="24"
|
|
FontWeight="Bold"
|
|
Foreground="White" />
|
|
<TextBlock Text="Edit vehicle properties using the PropertyGrid"
|
|
FontSize="13"
|
|
Foreground="White"
|
|
Opacity="0.9"
|
|
Margin="0,5,0,0" />
|
|
</StackPanel>
|
|
</Border>
|
|
|
|
<!-- PropertyGrid Section -->
|
|
<Border Grid.Row="1"
|
|
BorderBrush="#E0E0E0"
|
|
BorderThickness="1"
|
|
CornerRadius="6">
|
|
<pg:PropertyGrid SelectedObject="{Binding}"
|
|
ShowCategories="True"
|
|
ShowDescriptions="True" />
|
|
</Border>
|
|
|
|
<!-- Footer Section -->
|
|
<Border Grid.Row="2"
|
|
Padding="10"
|
|
Background="#F5F5F5"
|
|
CornerRadius="6"
|
|
Margin="0,15,0,0">
|
|
<TextBlock Text="Features: Categories, Multiple types, Descriptions, Read-only, Search"
|
|
FontSize="12" />
|
|
</Border>
|
|
|
|
</Grid>
|
|
|
|
</Window>
|