Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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(); });
        }