mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-20 21:33:10 -07:00
Fixed the display issue in AOT mode (#1615)
* Fixed the display issue in AOT mode * Get the OpenPaneLength from the resource
This commit is contained in:
parent
7cdc247071
commit
3598ed64ab
2 changed files with 6 additions and 1 deletions
|
@ -101,7 +101,7 @@
|
|||
ItemInvoked="OnNavItemInvoked"
|
||||
Loaded="OnNavLoaded"
|
||||
MenuItemsSource="{x:Bind CreateUIElementsForCategories(Model.Categories), Mode=OneWay}"
|
||||
OpenPaneLength="{StaticResource SplitViewOpenPaneLength}"
|
||||
OpenPaneLength="{x:Bind NavigationViewOpenPaneLength(Model.IsAlwaysOnTop), Mode=OneWay}"
|
||||
PaneClosed="OnNavPaneClosed"
|
||||
PaneOpened="OnNavPaneOpened"
|
||||
SelectionChanged="OnNavSelectionChanged"
|
||||
|
|
|
@ -604,6 +604,11 @@ namespace CalculatorApp
|
|||
}
|
||||
}
|
||||
|
||||
private double NavigationViewOpenPaneLength(bool isAlwaysOnTop)
|
||||
{
|
||||
return isAlwaysOnTop ? 0 : (double)Application.Current.Resources["SplitViewOpenPaneLength"];
|
||||
}
|
||||
|
||||
private CalculatorApp.Calculator m_calculator;
|
||||
private GraphingCalculator m_graphingCalculator;
|
||||
private CalculatorApp.UnitConverter m_converter;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue