Browse Source

Update samples/ControlCatalog/Pages/DialogsPage.xaml.cs

pull/9973/head
Max Katz 3 years ago
committed by GitHub
parent
commit
7cd51c9161
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      samples/ControlCatalog/Pages/DialogsPage.xaml.cs

2
samples/ControlCatalog/Pages/DialogsPage.xaml.cs

@ -396,7 +396,7 @@ CanPickFolder: {storageProvider.CanPickFolder}";
return item.TryGetUri(out var uri) ? uri.ToString() : item.Name;
}
Window GetWindow() => this.VisualRoot as Window ?? throw new NullReferenceException("Invalid Owner");
Window GetWindow() => TopLevel.GetTopLevel(this) as Window ?? throw new NullReferenceException("Invalid Owner");
TopLevel GetTopLevel() => TopLevel.GetTopLevel(this) ?? throw new NullReferenceException("Invalid Owner");
private void InitializeComponent()

Loading…
Cancel
Save