DragAndDropPage.xaml 886 B

12345678910111213141516171819
  1. <UserControl xmlns="https://github.com/avaloniaui">
  2. <StackPanel Orientation="Vertical" Spacing="4">
  3. <TextBlock Classes="h1">Drag+Drop</TextBlock>
  4. <TextBlock Classes="h2">Example of Drag+Drop capabilities</TextBlock>
  5. <StackPanel Orientation="Horizontal"
  6. Margin="0,16,0,0"
  7. HorizontalAlignment="Center"
  8. Spacing="16">
  9. <Border BorderBrush="{DynamicResource ThemeAccentBrush}" BorderThickness="2" Padding="16" Name="DragMe">
  10. <TextBlock Name="DragState">Drag Me</TextBlock>
  11. </Border>
  12. <Border Background="{DynamicResource ThemeAccentBrush2}" Padding="16"
  13. DragDrop.AllowDrop="True">
  14. <TextBlock Name="DropState">Drop some text or files here</TextBlock>
  15. </Border>
  16. </StackPanel>
  17. </StackPanel>
  18. </UserControl>