Пример #1
0
        //
        // An internal constructore to specify InputDevice directly.
        //
        internal TextComposition(InputManager inputManager, IInputElement source, string resultText, TextCompositionAutoComplete autoComplete, InputDevice inputDevice)
        {
            _inputManager = inputManager;

            _inputDevice = inputDevice;

            if (resultText == null)
            {
                throw new ArgumentException(SR.Get(SRID.TextComposition_NullResultText));
            }

            _resultText            = resultText;
            _compositionText       = "";
            _systemText            = "";
            _systemCompositionText = "";
            _controlText           = "";

            _autoComplete = autoComplete;

            _stage = TextCompositionStage.None;

            // source of this text composition.
            _source = source;
        }
 internal DefaultTextStoreTextComposition(InputManager inputManager, IInputElement source, string text, TextCompositionAutoComplete autoComplete) : base(inputManager, source, text, autoComplete)
 {
 }
Пример #3
0
 internal DeadCharTextComposition(InputManager inputManager, IInputElement source, string text, TextCompositionAutoComplete autoComplete, InputDevice inputDevice) : base(inputManager, source, text, autoComplete, inputDevice)
 {
 }
Пример #4
0
 /// <summary>
 ///     The constrcutor of TextComposition class.
 /// </summary>
 public TextComposition(InputManager inputManager, IInputElement source, string resultText, TextCompositionAutoComplete autoComplete) : this(inputManager, source, resultText, autoComplete, InputManager.Current.PrimaryKeyboardDevice)
 {
     // We should avoid using Enum.IsDefined for performance and correct versioning.
     if ((autoComplete != TextCompositionAutoComplete.Off) &&
         (autoComplete != TextCompositionAutoComplete.On))
     {
         throw new InvalidEnumArgumentException("autoComplete",
                                                (int)autoComplete,
                                                typeof(TextCompositionAutoComplete));
     }
 }
 public TextComposition(InputManager inputManager, System.Windows.IInputElement source, string resultText, TextCompositionAutoComplete autoComplete)
 {
 }
 internal DefaultTextStoreTextComposition(InputManager inputManager, IInputElement source, string text, TextCompositionAutoComplete autoComplete) : base(inputManager, source, text, autoComplete)
 { 
 } 
Пример #7
0
        internal TextComposition(InputManager inputManager, IInputElement source, string resultText, TextCompositionAutoComplete autoComplete, InputDevice inputDevice)
        { 
            _inputManager = inputManager; 

            _inputDevice = inputDevice; 

            if (resultText == null)
            {
                throw new ArgumentException(SR.Get(SRID.TextComposition_NullResultText)); 
            }
 
            _resultText = resultText; 
            _compositionText = "";
            _systemText = ""; 
            _systemCompositionText = "";
            _controlText = "";

            _autoComplete = autoComplete; 

            _stage = TextCompositionStage.None; 
 
            // source of this text composition.
            _source = source; 
        }
Пример #8
0
 public TextComposition(InputManager inputManager, IInputElement source, string resultText, TextCompositionAutoComplete autoComplete) : this(inputManager, source, resultText, autoComplete, InputManager.Current.PrimaryKeyboardDevice)
 { 
     // We should avoid using Enum.IsDefined for performance and correct versioning.
     if ((autoComplete != TextCompositionAutoComplete.Off) && 
         (autoComplete != TextCompositionAutoComplete.On)) 
     {
         throw new InvalidEnumArgumentException("autoComplete", 
                                                (int)autoComplete,
                                                typeof(TextCompositionAutoComplete));
     }
 } 
 public TextComposition(InputManager inputManager, System.Windows.IInputElement source, string resultText, TextCompositionAutoComplete autoComplete)
 {
 }
Пример #10
0
 internal DeadCharTextComposition(InputManager inputManager, IInputElement source, string text, TextCompositionAutoComplete autoComplete, InputDevice inputDevice) : base(inputManager, source, text, autoComplete, inputDevice)
 {
 }