Ejemplo n.º 1
0
        private static void IsReadOnlyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {
            StringEditor stringEditor = d as StringEditor;

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

            if (stringEditor != null)
            {
                stringEditor.UpdateTextFromValue();
            }
        }
Ejemplo n.º 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);
        }