Class ViewModelCommon
Provides helper methods for using DelegateCommands.
Inheritance
System.Object
ViewModelCommon
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Phoenix.Views
Assembly: Phoenix.Abstractions.Views.dll
Syntax
public static class ViewModelCommon
Methods
View SourceRaiseCanExecuteChanged(DelegateCommandBase)
Checks to make sure a command is valid and then runs the RaiseCanExecuteChanged method.
Declaration
public static void RaiseCanExecuteChanged(DelegateCommandBase command)
Parameters
Type | Name | Description |
---|---|---|
DelegateCommandBase | command | The command to use. |
RaiseCanExecuteChanged(IEnumerable<DelegateCommandBase>)
Invokes the RaiseCanExecuteChanged method for a list of DelegateCommands.
Declaration
public static void RaiseCanExecuteChanged(IEnumerable<DelegateCommandBase> commands)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.IEnumerable<DelegateCommandBase> | commands | The enumeration of commands to check. |