public MtPage() { UseBackKeyToNavigate = true; IsSuspendable = true; UseAltLeftOrRightToNavigate = true; NavigationCacheMode = NavigationCacheMode.Required; HorizontalContentAlignment = HorizontalAlignment.Stretch; VerticalContentAlignment = VerticalAlignment.Stretch; HorizontalAlignment = HorizontalAlignment.Stretch; VerticalAlignment = VerticalAlignment.Stretch; PageStateHandler = new PageStateHandler(this); NavigationKeyHandler = new NavigationKeyHandler(this); }
public MtPage() { UseBackKeyToNavigate = true; IsSuspendable = true; UseAltLeftOrRightToNavigate = true; NavigationCacheMode = NavigationCacheMode.Required; HorizontalContentAlignment = HorizontalAlignment.Stretch; VerticalContentAlignment = VerticalAlignment.Stretch; HorizontalAlignment = HorizontalAlignment.Stretch; VerticalAlignment = VerticalAlignment.Stretch; NavigationKeyHandler = new NavigationKeyHandler(this); PageStateHandler = new PageStateHandler(this, Guid.NewGuid().ToString()); DependencyPropertyChangedEvent.Register(this, DataContextProperty, delegate { OnDataContextChanged(); }); }