示例#1
0
        private static void PlaceholderChanged(BindableObject bindable, object oldValue, object newValue)
        {
            EditorExpandableWithMaxLines editorExpandableWithMaxLines = (EditorExpandableWithMaxLines)bindable;

            if (editorExpandableWithMaxLines.Editor != null)
            {
                editorExpandableWithMaxLines.Editor.Placeholder = (String)newValue;
            }
        }
示例#2
0
        private static void TextProperyChanged(BindableObject bindable, object oldValue, object newValue)
        {
            EditorExpandableWithMaxLines editorExpandableWithMaxLines = (EditorExpandableWithMaxLines)bindable;

            if (editorExpandableWithMaxLines.Editor != null)
            {
                editorExpandableWithMaxLines.Editor.Text = (String)newValue;
            }
        }
示例#3
0
 private static void BreakLineModifierProperyChanged(BindableObject bindable, object oldValue, object newValue)
 {
     if ((bindable != null) && (newValue != null))
     {
         EditorExpandableWithMaxLines editorExpandableWithMaxLines = (EditorExpandableWithMaxLines)bindable;
         if (editorExpandableWithMaxLines.Editor != null)
         {
             MultiPlatformApplication.Effects.EntryEffect.SetBreakLineModifier(editorExpandableWithMaxLines.Editor, (string)newValue);
         }
     }
 }
示例#4
0
 private static void ValidationCommandPropertyProperyChanged(BindableObject bindable, object oldValue, object newValue)
 {
     if ((bindable != null) && (newValue != null))
     {
         EditorExpandableWithMaxLines editorExpandableWithMaxLines = (EditorExpandableWithMaxLines)bindable;
         if (editorExpandableWithMaxLines.Editor != null)
         {
             MultiPlatformApplication.Effects.EntryEffect.SetValidationCommand(editorExpandableWithMaxLines.Editor, (ICommand)newValue);
         }
     }
 }
示例#5
0
        private static void MaxLinesChanged(BindableObject bindable, object oldValue, object newValue)
        {
            EditorExpandableWithMaxLines editorExpandableWithMaxLines = (EditorExpandableWithMaxLines)bindable;

            editorExpandableWithMaxLines.MaxLines = (int)newValue;
        }