/// <summary> /// Initializes a new instance of the <see cref="ToolBarButtonViewModel"/> class. /// </summary> /// <param name="commandItem">The command item. Must not be <see langword="null"/>.</param> /// <exception cref="ArgumentNullException"> /// <paramref name="commandItem"/> is <see langword="null"/>. /// </exception> public ToolBarButtonViewModel(CommandItem commandItem) : base(commandItem) { Debug.Assert(!commandItem.IsCheckable, "ToolBarButtonViewModel should not be used with checkable command items."); }
/// <summary> /// Initializes a new instance of the <see cref="ToolBarCheckBoxViewModel"/> class. /// </summary> /// <param name="commandItem">The command item. Must not be <see langword="null"/>.</param> /// <exception cref="ArgumentNullException"> /// <paramref name="commandItem"/> is <see langword="null"/>. /// </exception> public ToolBarCheckBoxViewModel(CommandItem commandItem) : base(commandItem) { Debug.Assert(commandItem.IsCheckable, "ToolBarCheckBoxViewModel should be used with checkable command items."); }