示例#1
0
        public async void doAppear()
        {
            while (Width == -1)
            {
                await Task.Delay(1);
            }

            Master.BackgroundColor = FixParams.PanelColor;
            Master.Opacity         = 1;

            ShortCutMenu.BackgroundColor = FixParams.PanelColor;
            ShortCutMenu.Opacity         = 1;

            MasterPage.Content   = Master;
            ShortCutPage.Content = ShortCutMenu;

            Children.Add(Detail);
            Children.Add(ShortCutPage);
            Children.Add(MasterPage);

            MasterPage.IsVisible   = false;
            ShortCutPage.IsVisible = false;

            Detail.Layout(new Rectangle(0, 0, Width, Height));
            Master.Layout(getMasterClosedRectangle());
            ShortCutMenu.Layout(getShortcutClosedRectangle());
        }