-
Notifications
You must be signed in to change notification settings - Fork 747
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
src/SamplesApp/UITests.Shared/Windows_UI_Xaml/DragAndDrop/DragDrop_Basics.xaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<UserControl | ||
x:Class="UITests.Windows_UI_Xaml.DragAndDrop.DragDrop_Basics" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:local="using:UITests.Windows_UI_Xaml.DragAndDrop" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
mc:Ignorable="d" | ||
d:DesignHeight="300" | ||
d:DesignWidth="400"> | ||
|
||
<Grid x:Name="_theRoot"> | ||
|
||
<Grid.ColumnDefinitions> | ||
<ColumnDefinition /> | ||
<ColumnDefinition /> | ||
</Grid.ColumnDefinitions> | ||
|
||
<Grid.RowDefinitions> | ||
<RowDefinition Height="Auto" /> | ||
<RowDefinition /> | ||
<RowDefinition /> | ||
</Grid.RowDefinitions> | ||
|
||
<TextBlock Text="Source" /> | ||
<Border Background="DeepPink" Width="300" Height="300" Grid.Column="0" Grid.Row="1" CanDrag="True" x:Name="_theCustomSource"> | ||
<Border x:Name="_theNestedCustomSource" Background="LightPink" Width="100" Height="100" CanDrag="True" /> | ||
</Border> | ||
|
||
<TextBlock Text="Target" Grid.Column="1" /> | ||
<Border Background="DeepSkyBlue" Width="300" Height="300" Grid.Column="1" Grid.Row="1" AllowDrop="True" x:Name="_theTarget"> | ||
<Border Background="DarkBlue" x:Name="_theNestedTarget" Width="100" Height="100" AllowDrop="True" /> | ||
</Border> | ||
|
||
<Image Source="https://picsum.photos/300/300" Grid.Column="0" Grid.Row="2" CanDrag="True" x:Name="_theImage" ManipulationMode="All" /> | ||
|
||
<TextBlock Grid.Column="1" Grid.Row="2" CanDrag="True" x:Name="_theText" Text="Some text that can be dragged and dropped" /> | ||
</Grid> | ||
</UserControl> |
16 changes: 16 additions & 0 deletions
16
src/SamplesApp/UITests.Shared/Windows_UI_Xaml/DragAndDrop/DragDrop_Basics.xaml.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using System; | ||
using System.Linq; | ||
using Windows.UI.Xaml.Controls; | ||
using Uno.UI.Samples.Controls; | ||
|
||
namespace UITests.Windows_UI_Xaml.DragAndDrop | ||
{ | ||
[Sample] | ||
public sealed partial class DragDrop_Basics : UserControl | ||
{ | ||
public DragDrop_Basics() | ||
{ | ||
this.InitializeComponent(); | ||
} | ||
} | ||
} |