CreatorPostsView.axaml 1.2 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:m="using:VeloeAvaloniaKemonoPartyApp.Models"
  6. xmlns:vm="clr-namespace:VeloeAvaloniaKemonoPartyApp.ViewModels"
  7. mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="854"
  8. x:Class="VeloeAvaloniaKemonoPartyApp.Views.CreatorPostsView"
  9. x:DataType="vm:CreatorPostsViewModel">
  10. <Design.DataContext>
  11. <!-- This only sets the DataContext for the previewer in an IDE,
  12. to set the actual DataContext for runtime, set the DataContext property in code (look at App.axaml.cs) -->
  13. <vm:CreatorPostsViewModel />
  14. </Design.DataContext>
  15. <DockPanel>
  16. <ScrollViewer>
  17. <ItemsControl ItemsSource="{Binding Posts}"
  18. Background="Transparent" Margin="0 20">
  19. <ItemsControl.ItemsPanel>
  20. <ItemsPanelTemplate>
  21. <VirtualizingStackPanel />
  22. </ItemsPanelTemplate>
  23. </ItemsControl.ItemsPanel>
  24. </ItemsControl>
  25. </ScrollViewer>
  26. </DockPanel>
  27. </UserControl>