Skip to content

Commit 3de6c98

Browse files
committed
Update GestureUnlockExample
1 parent 9cc880b commit 3de6c98

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/WPFDevelopers.Samples.Shared/ExampleViews/GestureUnlockExample.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
Width="400"
3434
Height="500"
3535
wd:ElementHelper.CornerRadius="10"
36-
GestureCompletedCommand="{Binding GestureCompletedCommand}">
36+
GestureCompletedCommand="{Binding GestureCompletedCommand, RelativeSource={RelativeSource AncestorType=UserControl}}">
3737
<wd:GestureUnlock.Background>
3838
<ImageBrush ImageSource="pack://application:,,,/WPFDevelopers.Samples;component/Resources/Images/IconicThumbnail/LcupqA.jpg" />
3939
</wd:GestureUnlock.Background>

src/WPFDevelopers.Samples.Shared/ExampleViews/GestureUnlockExample.xaml.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ private enum GestureUnlockType
2020
public GestureUnlockExample()
2121
{
2222
InitializeComponent();
23-
DataContext = this;
2423
}
2524

2625
private void HandleGestureUnlock(string pwd, GestureUnlockType unlockType)

0 commit comments

Comments
 (0)