예제 #1
0
    public void AssignAction(object sender, RoutedEventArgs e)
    {
        if (sender is not FrameworkElement element || element.DataContext is not IShortcutActionDescriptor actionDescriptor)
        {
            return;
        }
        if (SelectedBinding == null)
        {
            return;
        }

        var binding = SelectedBinding.Value;

        _manager.BindAction(binding.Key, actionDescriptor);
    }