mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-22 22:23:29 -07:00
Fix GetAppViewState
This commit is contained in:
parent
7556e84504
commit
becbbf81b6
1 changed files with 6 additions and 2 deletions
|
@ -106,8 +106,12 @@ namespace CalculatorApp
|
|||
public static string GetAppViewState()
|
||||
{
|
||||
String newViewState;
|
||||
CoreWindow window = CoreWindow.GetForCurrentThread();
|
||||
if ((window.Bounds.Width >= 560) && (window.Bounds.Height >= 356))
|
||||
#if NETFX_CORE
|
||||
CoreWindow window = CoreWindow.GetForCurrentThread();
|
||||
#else
|
||||
var window = Windows.UI.Xaml.Window.Current;
|
||||
#endif
|
||||
if ((window.Bounds.Width >= 560) && (window.Bounds.Height >= 356))
|
||||
{
|
||||
newViewState = ViewState.DockedView;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue