예제 #1
0
파일: SpellCheck.cs 프로젝트: JianwenSun/cc
        /// <summary>
        /// Enables and disables spell checking within a TextBoxBase.
        /// </summary>
        public static void SetIsEnabled(TextBoxBase textBoxBase, bool value)
        {
            if (textBoxBase == null)
            {
                throw new ArgumentNullException("textBoxBase");
            }

            textBoxBase.SetValue(IsEnabledProperty, value);
        }
 public static void SetText(TextBoxBase element, string value)
 {
     element.SetValue(TextProperty, value);
 }
 static void SetIsVisible(TextBoxBase element, bool value)
 {
     element.SetValue(IsVisibleProperty, value);
 }
예제 #4
0
파일: SpellCheck.cs 프로젝트: JianwenSun/cc
        /// <summary>
        /// Sets the spelling reform mode for a TextBoxBase.
        /// </summary>
        public static void SetSpellingReform(TextBoxBase textBoxBase, SpellingReform value)
        {
            if (textBoxBase == null)
            {
                throw new ArgumentNullException("textBoxBase");
            }

            textBoxBase.SetValue(SpellingReformProperty, value);
        }
 public static void SetTwitterAccountID(TextBoxBase textBoxBase, Decimal value)
 {
     if (textBoxBase == null)
     throw new ArgumentNullException("textBoxBase");
       textBoxBase.SetValue(IntellisenseExtension.TwitterAccountIDProperty, (object) value);
 }
 public static void SetScrollToBottomOnTextChanged(TextBoxBase target, object value)
 {
     target.SetValue(ScrollToBottomOnTextChangedProperty, value);
 }
예제 #7
0
		public static void SetCueBanner( TextBoxBase control, Object value )
		{
			control.SetValue( CueBannerProperty, value );
		}
 public static void SetSelectAllOnKeyboardFocus(TextBoxBase element, bool Value)
 {
     element.SetValue(SelectAllOnKeyboardFocusProperty, Value);
 }
예제 #9
0
 public static void SetAutoSelectAll(TextBoxBase tb, bool value)
 {
     tb.SetValue(AutoSelectAllProperty, value);
 }
예제 #10
0
 public static void SetSelectAll(TextBoxBase target, bool value)
 {
     target.SetValue(SelectAllAttachedProperty, value);
 }
 public static void SetInterceptsEscKey(TextBoxBase element, bool value)
 {
     element.SetValue(InterceptsEscKeyProperty, value);
 }