//static Border bk_ground; public static void Initial(Canvas can) { main_canv = can; Window.Current.SizeChanged += SizeChange; #if desktop Window.Current.CoreWindow.KeyDown += Core_KeyDown; Window.Current.CoreWindow.PointerReleased += (o, e) => { if (e.CurrentPoint.Properties.PointerUpdateKind == PointerUpdateKind.XButton2Released) { Back(); } }; #endif Timer.Inital(); screenX = Window.Current.Bounds.Width; screenY = Window.Current.Bounds.Height; #if phone if (screenX > screenY) { screenX -= 45; } else { screenY -= 23; } #endif canA = new Canvas(); canA.Width = screenX; canA.Height = screenY; canA.Background = bk_brush; main_canv.Children.Add(canA); Timer.Delegate(LoadPart0, 1); PageManageEx.Initial(canA); PageManageEx.CreateNewPage(PageTag.main); Setting.GetRootFolder(null); }
//static Border bk_ground; public static void Initial(SwapChain swap) { Swap = swap; PageManageEx.Initial(swap); PageManageEx.CreateNewPage(PageTag.main); }