diff --git a/samples/ControlCatalog/Pages/PointersPage.xaml.cs b/samples/ControlCatalog/Pages/PointersPage.xaml.cs index 6fc468e37f..e82fcb6226 100644 --- a/samples/ControlCatalog/Pages/PointersPage.xaml.cs +++ b/samples/ControlCatalog/Pages/PointersPage.xaml.cs @@ -59,7 +59,7 @@ Position: ??? ???"; e.Pointer.Capture(null); e.Handled = true; } - else + else if (e.Pointer.Captured is not null) { throw new InvalidOperationException("How?"); }