Example #1
0
        public GoProTipsPage()
        {
            this.InitializeComponent();
            _navigationHelper = new NavigationHelper(this);
            GoProTipsModel    = new GoProTipsViewModel();

            SizeChanged += OnSizeChanged;
        }
Example #2
0
        public GoProTipsPage()
        {
            this.InitializeComponent();
            _navigationHelper = new NavigationHelper(this);
            GoProTipsModel = new GoProTipsViewModel();

            SizeChanged += OnSizeChanged;
        }
Example #3
0
 protected override void OnNavigatedTo(NavigationEventArgs e)
 {
     GoProTipsModel = NavigationServices.CurrentViewModel as GoProTipsViewModel;
     if (e.NavigationMode == NavigationMode.New && NavigationContext.QueryString.ContainsKey("id"))
     {
         string id = NavigationContext.QueryString["id"];
         if (!String.IsNullOrEmpty(id))
         {
             _isDeepLink = true;
             GoProTipsModel = new GoProTipsViewModel();
             NavigationServices.CurrentViewModel = GoProTipsModel;
             GoProTipsModel.LoadItem(id);
         }
     }
     if (GoProTipsModel != null)
     {
         GoProTipsModel.ViewType = ViewTypes.Detail;
     }
     DataContext = GoProTipsModel;
     base.OnNavigatedTo(e);
 }
Example #4
0
 public GoProTipsPage()
 {
     InitializeComponent();
     GoProTipsModel = new GoProTipsViewModel();
 }