public void BeforeDoubleClick(Range target, HandledIndicator handled) { handled.MarkHandled(); if (IsDisabled) { return; } var viewModel = new DateEditorPopupViewModel { Value = Value }; var dialogResult = Popup.ShowDialog(w => { var view = new DateEditorPopupView { DataContext = viewModel }; view.ValueSelected += () => w.DialogResult = true; return(view); }); if (dialogResult == true) { Value = viewModel.Value; } }
public void BeforeDoubleClick(Range target, HandledIndicator handled) { var selectedIndex = Values.IndexOf(SelectedValue); SelectedValue = Values[(selectedIndex + 1) % Values.Count]; handled.MarkHandled(); }
public void BeforeDoubleClick(Range target, HandledIndicator handled) { if (target.Application.Intersect(target, Range) != null) { Clicked?.Invoke(); handled.MarkHandled(); } }