Skip to content

Instantly share code, notes, and snippets.

@SlyZ
SlyZ / CommandToCommandBindings.cs
Last active January 4, 2019 13:02
MVVM-friendly RoutedCommands. Command to command binding can be used to redirect one command to another. The primary use case for it is a redirection of a RoutedCommand to a different ICommand implementation (e.g. DelegateCommand, RelayCommand, etc.). Unlike the standard WPF CommandBinding, CommandToCommandBinding is a DependencyObject with Depe…
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Input;
namespace Sly.Toolkit