Esempio n. 1
0
        protected override void OnElementChanged(ElementChangedEventArgs <Xamarin.Forms.Picker> e)
        {
            base.OnElementChanged(e);

            if (Control != null)
            {
                // TODO: Focus() doesn't open date picker popup on UWP, it's known issue
                // on Xamarin.Forms and should be fixed in 2.5. Had to open it manually.
                var flyout = new PickerFlyout()
                {
                    Placement = FlyoutPlacementMode.Right
                };
                flyout.Confirmed += (s, args) =>
                {
                    //Control.Date = args.NewDate;
                };
                FlyoutBase.SetAttachedFlyout(Control, flyout);
            }
        }
Esempio n. 2
0
 private async void PickerFlyout_Confirmed(PickerFlyout sender, PickerConfirmedEventArgs args)
 {
     await new MessageDialog("你点了确定").ShowAsync();
 }
Esempio n. 3
0
 private void PickerFlyout_Confirmed(PickerFlyout sender, PickerConfirmedEventArgs args)
 {
     this.btnPickerFlyout.Content = this.txtPicker.Text.ToString();
 }
 public PickerFlyoutEvents(PickerFlyout This)
     : base(This)
 {
     this.This = This;
 }