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

            editorExpandableWithMaxLines.MaxLines = (int)newValue;
        }