コード例 #1
0
        void OnEditingEnded(object sender, EventArgs e)
        {
            IElementController ElementController = Element as IElementController;

            if (Control.Text != Element.Text)
            {
                ElementController.SetValueFromRenderer(Entry.TextProperty, Control.Text);
            }

            ElementController.SetValueFromRenderer(VisualElement.IsFocusedProperty, false);
        }
コード例 #2
0
 internal static void OnAnimationStopped(IElementController image, FormsAnimationDrawableStateEventArgs e)
 {
     if (image != null && e.Finished)
     {
         image.SetValueFromRenderer(Image.IsAnimationPlayingProperty, false);
     }
 }
コード例 #3
0
        void OnEditingBegan(object sender, EventArgs e)
        {
            IElementController ElementController = Element as IElementController;

            ElementController.SetValueFromRenderer(VisualElement.IsFocusedProperty, true);
        }
コード例 #4
0
        void OnEditingChanged(object sender, EventArgs eventArgs)
        {
            IElementController ElementController = Element as IElementController;

            ElementController.SetValueFromRenderer(Entry.TextProperty, Control.Text);
        }
コード例 #5
0
 public void SetValueFromRenderer(BindableProperty property, object value)
 {
     controller.SetValueFromRenderer(property, value);
 }