Archived
1
0

Menu displaying fixes

This commit is contained in:
Michael Gordeev
2019-01-08 00:22:40 +03:00
parent b5f4a007ff
commit cfeecd5ad1
+16
View File
@@ -461,7 +461,15 @@ namespace FoxTube
{ {
nav.CompactModeThresholdWidth = short.MaxValue; nav.CompactModeThresholdWidth = short.MaxValue;
nav.ExpandedModeThresholdWidth = short.MaxValue; nav.ExpandedModeThresholdWidth = short.MaxValue;
try
{
nav.IsPaneVisible = false; nav.IsPaneVisible = false;
}
catch
{
nav.CompactPaneLength = 0;
nav.OpenPaneLength = 0;
}
nav.Margin = new Thickness(0, -45, 0, 0); nav.Margin = new Thickness(0, -45, 0, 0);
} }
else else
@@ -470,7 +478,15 @@ namespace FoxTube
if(videoPlaceholder.Content == null) if(videoPlaceholder.Content == null)
nav.ExpandedModeThresholdWidth = 1008; nav.ExpandedModeThresholdWidth = 1008;
nav.Margin = new Thickness(0); nav.Margin = new Thickness(0);
try
{
nav.IsPaneVisible = true; nav.IsPaneVisible = true;
}
catch
{
nav.CompactPaneLength = new NavigationView().CompactPaneLength;
nav.OpenPaneLength = new NavigationView().OpenPaneLength; ;
}
if (videoPlaceholder.Content != null && nav.IsPaneOpen) if (videoPlaceholder.Content != null && nav.IsPaneOpen)
nav.IsPaneOpen = false; nav.IsPaneOpen = false;
SetTitleBar(); SetTitleBar();