FarsiLibrary.WPF.Controls.FXDatePicker.KeyboardToggleDropDown C# (CSharp) Метод

KeyboardToggleDropDown() приватный Метод

Close the dropdown and commit the selection if requested. Make sure to set the selection after the dropdown has closed Don't trigger any unnecessary navigation as a result of changing the selection.
private KeyboardToggleDropDown ( bool openDropDown, bool commitSelection ) : void
openDropDown bool
commitSelection bool
Результат void
        private void KeyboardToggleDropDown(bool openDropDown, bool commitSelection)
        {
            IsDropDownOpen = openDropDown;

            if (!openDropDown)
            {
                if (commitSelection && MonthView != null)
                {
                    SelectedDateTime = MonthView.SelectedDateTime;
                }
                else
                {
                    SelectedDateTime = prevValue;
                }
            }
        }