Skip to content

Commit 4b07f69

Browse files
Fixed Map image layer sublayer visibility sample by assigning XAML root to ContentDialog. (#1577)
1 parent e9f8a45 commit 4b07f69

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/WinUI/ArcGIS.WinUI.Viewer/Samples/Layers/ChangeSublayerVisibility/ChangeSublayerVisibility.xaml.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ private async void OnSublayersButtonClicked(object sender, RoutedEventArgs e)
9898
dialog.PrimaryButtonClick += (s, a) => dialog.Hide();
9999

100100
// Show dialog as a full screen overlay.
101+
dialog.XamlRoot = this.XamlRoot;
101102
await dialog.ShowAsync();
102103
}
103104
catch (Exception ex)

0 commit comments

Comments
 (0)