NewVid.axaml 1.4 KB

1234567891011121314151617181920212223242526
  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. mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
  6. x:Class="Avalonia.UI.Views.NewVid">
  7. <StackPanel Spacing="5" Width="200">
  8. <Border CornerRadius="10" ClipToBounds="True">
  9. <Panel Background="#7FFF22DD">
  10. <Image Width="200" Stretch="Uniform" Source="{Binding Cover}" />
  11. <Panel Height="200" IsVisible="{Binding Cover, Converter={x:Static ObjectConverters.IsNull}}">
  12. <PathIcon Height="75" Width="75" Data="{StaticResource Default_Picture}" />
  13. </Panel>
  14. </Panel>
  15. </Border>
  16. <TextBlock Text="{Binding Title}" HorizontalAlignment="Center" />
  17. <TextBlock Text="{Binding FullName}" HorizontalAlignment="Center" />
  18. <ListBox Items="{Binding SearchResults}" SelectedItem="{Binding SelectedSomething}" Background="Transparent" Margin="0 20">
  19. <ListBox.ItemsPanel>
  20. <ItemsPanelTemplate>
  21. <WrapPanel />
  22. </ItemsPanelTemplate>
  23. </ListBox.ItemsPanel>
  24. </ListBox>
  25. </StackPanel>
  26. </UserControl>