public GoProDIYPage() { this.InitializeComponent(); _navigationHelper = new NavigationHelper(this); GoProDIYModel = new GoProDIYViewModel(); SizeChanged += OnSizeChanged; }
protected override void OnNavigatedTo(NavigationEventArgs e) { GoProDIYModel = NavigationServices.CurrentViewModel as GoProDIYViewModel; if (e.NavigationMode == NavigationMode.New && NavigationContext.QueryString.ContainsKey("id")) { string id = NavigationContext.QueryString["id"]; if (!String.IsNullOrEmpty(id)) { _isDeepLink = true; GoProDIYModel = new GoProDIYViewModel(); NavigationServices.CurrentViewModel = GoProDIYModel; GoProDIYModel.LoadItem(id); } } if (GoProDIYModel != null) { GoProDIYModel.ViewType = ViewTypes.Detail; } DataContext = GoProDIYModel; base.OnNavigatedTo(e); }
public GoProDIYPage() { InitializeComponent(); GoProDIYModel = new GoProDIYViewModel(); }