Question by
SlavaObninsk · Nov 02, 2015 at 03:46 PM ·
windowswindows store appwindows phone 8
Cannot implicitly convert type Frame to Windows.UI.Xaml.UIElement
Cannot implicitly convert type Frame to Windows.UI.Xaml.UIElement Windows Store project. Unity 5.2.2 p2. In function void InitializeUnity(string args, Windows.ApplicationModel.Activation.SplashScreen splashScreen). Build target : Windows Store -> SDK-> Phone 8.1
appCallbacks.SetAppArguments(args);
Frame rootFrame = Window.Current.Content as Frame;
// Do not repeat app initialization when the Window already has content,
// just ensure that the window is active
if (rootFrame == null && !appCallbacks.IsInitialized())
{
rootFrame = new Frame();
Window.Current.Content = rootFrame;
Window.Current.Activate();
rootFrame.Navigate(typeof(MainPage));
}
Window.Current.Activate();
}
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612043644im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Unity cannot find Windows Phone 8.1 SDK while building 4 Answers
Windows Phone Store - ARToolKit - Using an API that is not part of the Windows SDK 0 Answers
While porting the game to WIndows Phone 8.1 it runs too slow on device 0 Answers
dynamic[] args become System.Object[] args when built to UWP and cause crashes 0 Answers
Failed to Initialize 3D Graphics? 10 Answers