ExpanderPage.xaml 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. <UserControl xmlns="https://github.com/avaloniaui"
  2. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  3. x:Class="ControlCatalog.Pages.ExpanderPage">
  4. <StackPanel Orientation="Vertical" Spacing="4">
  5. <TextBlock Classes="h2">Expands to show nested content</TextBlock>
  6. <StackPanel Orientation="Vertical"
  7. Margin="0,16,0,0"
  8. HorizontalAlignment="Center"
  9. Spacing="16">
  10. <Expander Header="Expand Up" ExpandDirection="Up">
  11. <StackPanel>
  12. <TextBlock>Expanded content</TextBlock>
  13. </StackPanel>
  14. </Expander>
  15. <Expander Header="Expand Down" ExpandDirection="Down">
  16. <StackPanel>
  17. <TextBlock>Expanded content</TextBlock>
  18. </StackPanel>
  19. </Expander>
  20. <Expander Header="Expand Left" ExpandDirection="Left">
  21. <StackPanel>
  22. <TextBlock>Expanded content</TextBlock>
  23. </StackPanel>
  24. </Expander>
  25. <Expander Header="Expand Right" ExpandDirection="Right">
  26. <StackPanel>
  27. <TextBlock>Expanded content</TextBlock>
  28. </StackPanel>
  29. </Expander>
  30. </StackPanel>
  31. </StackPanel>
  32. </UserControl>