Exemple #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;
            }
        }
Exemple #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;
            }
        }
Exemple #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);
         }
     }
 }
Exemple #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);
         }
     }
 }
Exemple #5
0
        private static void MaxLinesChanged(BindableObject bindable, object oldValue, object newValue)
        {
            EditorExpandableWithMaxLines editorExpandableWithMaxLines = (EditorExpandableWithMaxLines)bindable;

            editorExpandableWithMaxLines.MaxLines = (int)newValue;
        }