示例#1
0
        private static void IsReadOnlyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            StringEditor stringEditor = d as StringEditor;

            if (stringEditor != null)
            {
                stringEditor.OnIsReadOnlyChanged(e);
            }
        }
示例#2
0
        private static void ValueChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            StringEditor stringEditor = d as StringEditor;

            if (stringEditor != null)
            {
                stringEditor.UpdateTextFromValue();
            }
        }
示例#3
0
        private static object CoerceIsEditing(DependencyObject target, object value)
        {
            StringEditor stringEditor = target as StringEditor;

            if (stringEditor == null || !(bool)value || !stringEditor.IsReadOnly)
            {
                return(value);
            }
            return(false);
        }