RefreshContainerPage.axaml 1.3 KB

123456789101112131415161718192021222324252627
  1. <UserControl xmlns="https://github.com/avaloniaui"
  2. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  3. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:viewModels="using:ControlCatalog.ViewModels"
  6. mc:Ignorable="d"
  7. d:DesignWidth="800"
  8. d:DesignHeight="450"
  9. x:DataType="viewModels:RefreshContainerViewModel"
  10. x:Class="ControlCatalog.Pages.RefreshContainerPage">
  11. <DockPanel HorizontalAlignment="Stretch"
  12. Height="600"
  13. VerticalAlignment="Top">
  14. <Label DockPanel.Dock="Top">A control that supports pull to refresh</Label>
  15. <RefreshContainer Name="Refresh"
  16. DockPanel.Dock="Bottom"
  17. HorizontalAlignment="Stretch"
  18. VerticalAlignment="Stretch"
  19. PullDirection="TopToBottom"
  20. RefreshRequested="RefreshContainerPage_RefreshRequested"
  21. Margin="5">
  22. <ListBox HorizontalAlignment="Stretch"
  23. VerticalAlignment="Top"
  24. Items="{Binding Items}"/>
  25. </RefreshContainer>
  26. </DockPanel>
  27. </UserControl>