Exemple #1
0
        void OnEntryClicked(object sender, EventArgs e)
        {
            // For EFL Entry, the event will occur even if it is currently disabled.
            // If the problem is resolved, no conditional statement is required.
            if (Element.IsEnabled)
            {
                Native.DateTimePickerDialog dialog = new Native.DateTimePickerDialog(Forms.NativeParent)
                {
                    Title = DialogTitle
                };

                dialog.InitializeDatePicker(Element.Date, Element.MinimumDate, Element.MaximumDate);
                dialog.DateTimeChanged += OnDateTimeChanged;
                dialog.Dismissed       += OnDialogDismissed;
                dialog.Show();
            }
        }
        void OnClicked(object o, EventArgs e)
        {
            // For EFL Entry, the event will occur even if it is currently disabled.
            // If the problem is resolved, no conditional statement is required.
            if (Element.IsEnabled)
            {
                Native.DateTimePickerDialog dialog = new Native.DateTimePickerDialog(Forms.Context.MainWindow)
                {
                    Title = DialogTitle
                };

                dialog.InitializeTimePicker(_time, null);
                dialog.DateTimeChanged += OnDialogTimeChanged;
                dialog.Dismissed       += OnDialogDismissed;
                dialog.Show();
            }
        }