private static void IsReadOnlyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { StringEditor stringEditor = d as StringEditor; if (stringEditor != null) { stringEditor.OnIsReadOnlyChanged(e); } }
private static void ValueChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { StringEditor stringEditor = d as StringEditor; if (stringEditor != null) { stringEditor.UpdateTextFromValue(); } }
private static object CoerceIsEditing(DependencyObject target, object value) { StringEditor stringEditor = target as StringEditor; if (stringEditor == null || !(bool)value || !stringEditor.IsReadOnly) { return(value); } return(false); }