Exemplo n.º 1
0
 public PageStateManager(Page page, bool hasCommandBar = false)
 {
     this.Page                     = page;
     this.hasCommandBar            = hasCommandBar;
     this.innerManager             = new PageStateManager(page, true);
     innerManager.InitializeState += innerManager_InitializeState;
     innerManager.SaveState       += innerManager_SaveState;
     innerManager.RestoreState    += innerManager_RestoreState;
 }
Exemplo n.º 2
0
        public MainPage()
        {
            this.InitializeComponent();
            PlanningPart.SetDateTimePickerDialog(new DateTimePhoneDialog());
            BuildApplicationBar();
            stateManager = new PageStateManager(this);
            stateManager.InitializeState += InitializePageState;

            //if (App.Config.Advertising)
            //{
            //    AdControl.Visibility = Visibility.Visible;
            //    AdControl.ApplicationId = App.Config.ApplicationID;
            //    AdControl.AdUnitId = App.Config.MainAdUnitID;
            //}
        }