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