public static ICommand GetCommand(DependencyObject obj) { return (ICommand) obj.GetValue(CommandProperty); }