PropertyGridWindow.axaml 1.4 KB

123456789101112131415161718192021222324252627282930
  1. <controls:SukiWindow x:Class="SukiUI.Controls.PropertyGridWindow"
  2. xmlns="https://github.com/avaloniaui"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:controls="clr-namespace:SukiUI.Controls"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  7. Width="400"
  8. Height="500"
  9. d:DesignHeight="400"
  10. d:DesignWidth="500"
  11. x:DataType="controls:ComplexTypeViewModel"
  12. Background="{DynamicResource SukiBackground}"
  13. mc:Ignorable="d">
  14. <Border Padding="5" Background="{DynamicResource SukiBackground}">
  15. <ScrollViewer>
  16. <controls:PropertyGrid Item="{Binding}">
  17. <controls:PropertyGrid.DataTemplates>
  18. <!--
  19. replace the PropertyGridTemplateSelector with your own type or subclass it,
  20. if you want to customize the datatemplates being used
  21. -->
  22. <controls:PropertyGridTemplateSelector />
  23. </controls:PropertyGrid.DataTemplates>
  24. </controls:PropertyGrid>
  25. </ScrollViewer>
  26. </Border>
  27. </controls:SukiWindow>