예제 #1
0
 partial void OnIsReadonlyChangedPartial(DependencyPropertyChangedEventArgs e)
 {
     if (e.NewValue is bool isReadonly)
     {
         if (isReadonly)
         {
             _textBoxView?.SetAttribute("readonly", "readonly");
         }
         else
         {
             _textBoxView?.RemoveAttribute("readonly");
         }
     }
 }
예제 #2
0
 partial void OnIsSpellCheckEnabledChangedPartial(DependencyPropertyChangedEventArgs e)
 {
     _textBoxView?.SetAttribute("spellcheck", IsSpellCheckEnabled.ToString());
 }