private static ICommand GetCommand(UIElement inUiElement) { Argument.IsNotNull(() => inUiElement); return (ICommand) inUiElement.GetValue(CommandProperty); }