public BasePage(PageStytle style = PageStytle.None)
        {
            this.IsTextScaleFactorEnabled = false;
            this.SizeChanged += BasePage_SizeChanged;
            this.Loaded += BasePage_Loaded;
            this.Unloaded += BasePage_Unloaded;
            PageStytle = style;
            if (PageStytle != PageStytle.Main)
            {
                this.ManipulationMode = ManipulationModes.TranslateX;
                this.ManipulationCompleted += BasePage_ManipulationCompleted;
                this.ManipulationDelta += BasePage_ManipulationDelta;

                _tt = this.RenderTransform as TranslateTransform;
                if (_tt == null) this.RenderTransform = _tt = new TranslateTransform();
            }
        }
Ejemplo n.º 2
0
        public BasePage(PageStytle style = PageStytle.None)
        {
            this.IsTextScaleFactorEnabled = false;
            this.SizeChanged += BasePage_SizeChanged;
            this.Loaded      += BasePage_Loaded;
            this.Unloaded    += BasePage_Unloaded;
            PageStytle        = style;
            if (PageStytle != PageStytle.Main)
            {
                this.ManipulationMode       = ManipulationModes.TranslateX;
                this.ManipulationCompleted += BasePage_ManipulationCompleted;
                this.ManipulationDelta     += BasePage_ManipulationDelta;

                _tt = this.RenderTransform as TranslateTransform;
                if (_tt == null)
                {
                    this.RenderTransform = _tt = new TranslateTransform();
                }
            }
        }