mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-22 22:23:29 -07:00
[iOS] Misc fixes
This commit is contained in:
parent
ca2fd21a4a
commit
4a84523351
2 changed files with 7 additions and 3 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;
|
||||
}
|
||||
|
|
|
@ -573,7 +573,7 @@ namespace CalculatorApp.ViewModel
|
|||
|
||||
m_decimalSeparator = LocalizationSettings.GetInstance().GetDecimalSeparator();
|
||||
|
||||
#if !__WASM__
|
||||
#if !__WASM__ && !__IOS__
|
||||
if (CoreWindow.GetForCurrentThread() != null)
|
||||
{
|
||||
// Must have a CoreWindow to access the resource context.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue