-
Notifications
You must be signed in to change notification settings - Fork 100
Expand file tree
/
Copy pathMainWindow.xaml
More file actions
21 lines (19 loc) · 871 Bytes
/
MainWindow.xaml
File metadata and controls
21 lines (19 loc) · 871 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<Window
x:Class="BehaviorSample.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:i="using:Microsoft.Xaml.Interactivity"
xmlns:local="using:BehaviorSample"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
<Border Background="LightBlue" Padding="12">
<i:Interaction.Behaviors>
<local:DragBehavior />
</i:Interaction.Behaviors>
<!--<Button x:Name="myButton" Click="myButton_Click">Drag me</Button>-->
<TextBlock Text="move me" />
</Border>
</StackPanel>
</Window>