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,7 +106,11 @@ namespace CalculatorApp
|
||||||
public static string GetAppViewState()
|
public static string GetAppViewState()
|
||||||
{
|
{
|
||||||
String newViewState;
|
String newViewState;
|
||||||
|
#if NETFX_CORE
|
||||||
CoreWindow window = CoreWindow.GetForCurrentThread();
|
CoreWindow window = CoreWindow.GetForCurrentThread();
|
||||||
|
#else
|
||||||
|
var window = Windows.UI.Xaml.Window.Current;
|
||||||
|
#endif
|
||||||
if ((window.Bounds.Width >= 560) && (window.Bounds.Height >= 356))
|
if ((window.Bounds.Width >= 560) && (window.Bounds.Height >= 356))
|
||||||
{
|
{
|
||||||
newViewState = ViewState.DockedView;
|
newViewState = ViewState.DockedView;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue