I have two elements in my project, ContentDialog & SplitView (Hamburger Menu).
My ContentDialog has a button that lets you invoke the SplitView and put the IsPaneOpen = true
, but when I do, the split view opens and is behind the ContentDialog.
Is there any way to put SplitView above ContentDialog without Dialog disappear?
I've tried placing the Canvas, but nothing worked.
Button code-behind:
private void ButtonMenuClick(object sender, RoutedEventArgs e)
{
((App)(App.Current)).HamburgerPage.ShowHamburgerMenu(sender, e);
}
In page of Hamburger Menu:
public void ShowHamburgerMenu(object sender, RoutedEventArgs e)
{
if (splitView.IsPaneOpen)
{
this.splitView.IsPaneOpen = false;
}
else
{
this.splitView.IsPaneOpen = true;
}
}