ExpanderPage.xaml 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  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="h1">Expander</TextBlock>
  6. <TextBlock Classes="h2">Expands to show nested content</TextBlock>
  7. <StackPanel Orientation="Vertical"
  8. Margin="0,16,0,0"
  9. HorizontalAlignment="Center"
  10. Spacing="16">
  11. <Expander Header="Expand Up" ExpandDirection="Up">
  12. <StackPanel>
  13. <TextBlock>Expanded content</TextBlock>
  14. </StackPanel>
  15. </Expander>
  16. <Expander Header="Expand Down" ExpandDirection="Down">
  17. <StackPanel>
  18. <TextBlock>Expanded content</TextBlock>
  19. </StackPanel>
  20. </Expander>
  21. <Expander Header="Expand Left" ExpandDirection="Left">
  22. <StackPanel>
  23. <TextBlock>Expanded content</TextBlock>
  24. </StackPanel>
  25. </Expander>
  26. <Expander Header="Expand Right" ExpandDirection="Right">
  27. <StackPanel>
  28. <TextBlock>Expanded content</TextBlock>
  29. </StackPanel>
  30. </Expander>
  31. </StackPanel>
  32. </StackPanel>
  33. </UserControl>