Exemplo n.º 1
0
        //-------------------------------------------------------------------------------
        //
        // Constructors
        //
        //-------------------------------------------------------------------------------

        #region Constructors

        /// <summary>
        /// The constructor of InkPresenter
        /// </summary>
        public InkPresenter()
        {
            // Create the internal Renderer object.
            _renderer = new Ink.Renderer();

            SetStrokesChangedHandlers(this.Strokes, null);

            _contrastCallback = new InkPresenterHighContrastCallback(this);

            // Register rti high contrast callback. Then check whether we are under the high contrast already.
            HighContrastHelper.RegisterHighContrastCallback(_contrastCallback);
            if (SystemParameters.HighContrast)
            {
                _contrastCallback.TurnHighContrastOn(SystemColors.WindowTextColor);
            }

            _constraintSize = Size.Empty;
        }
Exemplo n.º 2
0
        //-------------------------------------------------------------------------------
        //
        // Constructors
        //
        //-------------------------------------------------------------------------------

        #region Constructors

        /// <summary>
        /// The constructor of InkPresenter
        /// </summary>
        public InkPresenter()
        {        
            // Create the internal Renderer object.
            _renderer = new Ink.Renderer();

            SetStrokesChangedHandlers(this.Strokes, null);

            _contrastCallback = new InkPresenterHighContrastCallback(this);

            // Register rti high contrast callback. Then check whether we are under the high contrast already.
            HighContrastHelper.RegisterHighContrastCallback(_contrastCallback);
            if ( SystemParameters.HighContrast )
            {
                _contrastCallback.TurnHighContrastOn(SystemColors.WindowTextColor);
            }

            _constraintSize = Size.Empty;
        }