Horje
Xamarin Forms iOS Picker done Code Example
Xamarin Forms iOS Picker done
public class MyPickerRenderer : PickerRenderer
{
    protected override void OnElementChanged(ElementChangedEventArgs<Picker> e)
    {
        base.OnElementChanged(e);

        if(e.OldElement != null)
        {
            var toolbar = (UIToolbar)Control.InputAccessoryView;
            var doneBtn = toolbar.Items[1];

            doneBtn.Clicked -= DoneBtn_Clicked;
        }

        if(e.NewElement != null)
        {
            var toolbar = (UIToolbar)Control.InputAccessoryView;
            var doneBtn = toolbar.Items[1];

            doneBtn.Clicked += DoneBtn_Clicked;
        }
    }

    void DoneBtn_Clicked(object sender, EventArgs e)
    {
        Console.WriteLine("Clicked!!!!");
    }
}




Csharp

Related
c# exists in list Code Example c# exists in list Code Example
Garbage collect every 30 frames unity Code Example Garbage collect every 30 frames unity Code Example
download xml file asp.net web api Code Example download xml file asp.net web api Code Example
how to add an embedded resource in visual studio code Code Example how to add an embedded resource in visual studio code Code Example
how to write excel content type while returning from mvc view Code Example how to write excel content type while returning from mvc view Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9