Add drag/drop handling

This commit is contained in:
dan_clark@outlook.com
2022-03-23 21:19:23 +00:00
parent 2ac0e3ed26
commit 263704a772
22 changed files with 189 additions and 63 deletions
@@ -2,8 +2,13 @@
x:Class="TheXamlGuy.TaskbarGroup.Flyout.TaskbarButtonGroupView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:foundation="using:TheXamlGuy.TaskbarGroup.Flyout.Foundation"
xmlns:interactivity="using:Microsoft.Xaml.Interactivity"
AllowDrop="True">
<StackPanel>
<interactivity:Interaction.Behaviors>
<foundation:DropTarget Mediator="{x:Bind ViewModel.Mediator}" />
</interactivity:Interaction.Behaviors>
<StackPanel AllowDrop="True" Background="Red">
<TextBox HorizontalAlignment="Stretch" Text="{x:Bind ViewModel.Name, Mode=TwoWay}" />
<GridView
x:Name="GridView"
@@ -30,5 +35,4 @@
</GridView.ItemsPanel>
</GridView>
</StackPanel>
</UserControl>