コード例 #1
0
ファイル: MtPage.cs プロジェクト: jogibear9988/MyToolkit
        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);
        }
コード例 #2
0
ファイル: MtPage.cs プロジェクト: RareNCool/MyToolkit
        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(); });
        }