CreatorsView.axaml 1.3 KB

1234567891011121314151617181920212223242526272829
  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.CreatorsView"
  9. x:DataType="vm:CreatorsViewModel">
  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:CreatorsViewModel />
  14. </Design.DataContext>
  15. <DockPanel>
  16. <StackPanel DockPanel.Dock="Top">
  17. <TextBox Watermark="Search for creators..." Text="{Binding SearchText}"/>
  18. <ProgressBar IsIndeterminate="True" IsVisible="{Binding IsBusy}"/>
  19. </StackPanel>
  20. <ListBox ItemsSource="{Binding SearchResults}" SelectedItem="{Binding SelectedAlbum}" SelectionMode="Single"
  21. Background="Transparent" Margin="0 20">
  22. <ListBox.ItemsPanel>
  23. <ItemsPanelTemplate>
  24. <WrapPanel />
  25. </ItemsPanelTemplate>
  26. </ListBox.ItemsPanel>
  27. </ListBox>
  28. </DockPanel>
  29. </UserControl>