GalaSoft.MvvmLight.Platform A command whose sole purpose is to relay its functionality to other objects by invoking delegates. The default return value for the CanExecute method is 'true'. This class does not allow you to accept command parameters in the Execute and CanExecute callback methods. If you are using this class in WPF4.5 or above, you need to use the GalaSoft.MvvmLight.CommandWpf namespace (instead of GalaSoft.MvvmLight.Command). This will enable (or restore) the CommandManager class which handles automatic enabling/disabling of controls based on the CanExecute delegate. Initializes a new instance of the RelayCommand class that can always execute. The execution logic. IMPORTANT: If the action causes a closure, you must set keepTargetAlive to true to avoid side effects. If true, the target of the Action will be kept as a hard reference, which might cause a memory leak. You should only set this parameter to true if the action is causing a closure. See http://galasoft.ch/s/mvvmweakaction. If the execute argument is null. Initializes a new instance of the RelayCommand class. The execution logic. IMPORTANT: If the action causes a closure, you must set keepTargetAlive to true to avoid side effects. The execution status logic. IMPORTANT: If the func causes a closure, you must set keepTargetAlive to true to avoid side effects. If true, the target of the Action will be kept as a hard reference, which might cause a memory leak. You should only set this parameter to true if the action is causing a closures. See http://galasoft.ch/s/mvvmweakaction. If the execute argument is null. Occurs when changes occur that affect whether the command should execute. Raises the event. Defines the method that determines whether the command can execute in its current state. This parameter will always be ignored. true if this command can be executed; otherwise, false. Defines the method to be called when the command is invoked. This parameter will always be ignored. A generic command whose sole purpose is to relay its functionality to other objects by invoking delegates. The default return value for the CanExecute method is 'true'. This class allows you to accept command parameters in the Execute and CanExecute callback methods. The type of the command parameter. If you are using this class in WPF4.5 or above, you need to use the GalaSoft.MvvmLight.CommandWpf namespace (instead of GalaSoft.MvvmLight.Command). This will enable (or restore) the CommandManager class which handles automatic enabling/disabling of controls based on the CanExecute delegate. Initializes a new instance of the RelayCommand class that can always execute. The execution logic. IMPORTANT: If the action causes a closure, you must set keepTargetAlive to true to avoid side effects. If true, the target of the Action will be kept as a hard reference, which might cause a memory leak. You should only set this parameter to true if the action is causing a closure. See http://galasoft.ch/s/mvvmweakaction. If the execute argument is null. Initializes a new instance of the RelayCommand class. The execution logic. IMPORTANT: If the action causes a closure, you must set keepTargetAlive to true to avoid side effects. The execution status logic. IMPORTANT: If the func causes a closure, you must set keepTargetAlive to true to avoid side effects. If true, the target of the Action will be kept as a hard reference, which might cause a memory leak. You should only set this parameter to true if the action is causing a closure. See http://galasoft.ch/s/mvvmweakaction. If the execute argument is null. Occurs when changes occur that affect whether the command should execute. Raises the event. Defines the method that determines whether the command can execute in its current state. Data used by the command. If the command does not require data to be passed, this object can be set to a null reference true if this command can be executed; otherwise, false. Defines the method to be called when the command is invoked. Data used by the command. If the command does not require data to be passed, this object can be set to a null reference This can be used to bind any event on any FrameworkElement to an . Typically, this element is used in XAML to connect the attached element to a command located in a ViewModel. This trigger can only be attached to a FrameworkElement or a class deriving from FrameworkElement. To access the EventArgs of the fired event, use a RelayCommand<EventArgs> and leave the CommandParameter and CommandParameterValue empty! Identifies the dependency property Identifies the dependency property Identifies the dependency property Gets or sets the ICommand that this trigger is bound to. This is a DependencyProperty. Gets or sets an object that will be passed to the attached to this trigger. This is a DependencyProperty. Gets or sets an object that will be passed to the attached to this trigger. This property is here for compatibility with the Silverlight version. This is NOT a DependencyProperty. For databinding, use the property. Gets or sets a value indicating whether the attached element must be disabled when the property's CanExecuteChanged event fires. If this property is true, and the command's CanExecute method returns false, the element will be disabled. If this property is false, the element will not be disabled when the command's CanExecute method changes. This is a DependencyProperty. Gets or sets a value indicating whether the attached element must be disabled when the property's CanExecuteChanged event fires. If this property is true, and the command's CanExecute method returns false, the element will be disabled. This property is here for compatibility with the Silverlight version. This is NOT a DependencyProperty. For databinding, use the property. Called when this trigger is attached to a FrameworkElement. This method is here for compatibility with the Silverlight version. The FrameworkElement to which this trigger is attached. This method is here for compatibility with the Silverlight 3 version. The command that must be executed when this trigger is invoked. Specifies whether the EventArgs of the event that triggered this action should be passed to the bound RelayCommand. If this is true, the command should accept arguments of the corresponding type (for example RelayCommand<MouseButtonEventArgs>). Gets or sets a converter used to convert the EventArgs when using . If PassEventArgsToCommand is false, this property is never used. The dependency property's name. Gets or sets a parameters for the converter used to convert the EventArgs when using . If PassEventArgsToCommand is false, this property is never used. This is a dependency property. Identifies the dependency property. The dependency property's name. Gets or sets a value indicating if the command should be invoked even if the attached control is disabled. This is a dependency property. Identifies the dependency property. Provides a simple way to invoke this trigger programatically without any EventArgs. Executes the trigger. To access the EventArgs of the fired event, use a RelayCommand<EventArgs> and leave the CommandParameter and CommandParameterValue empty! The EventArgs of the fired event. The definition of the converter used to convert an EventArgs in the class, if the property is true. Set an instance of this class to the property of the EventToCommand instance. The method used to convert the EventArgs instance. An instance of EventArgs passed by the event that the EventToCommand instance is handling. An optional parameter used for the conversion. Use the property to set this value. This may be null. The converted value. Helper class for dispatcher operations on the UI thread. Gets a reference to the UI thread's dispatcher, after the method has been called on the UI thread. Executes an action on the UI thread. If this method is called from the UI thread, the action is executed immendiately. If the method is called from another thread, the action will be enqueued on the UI thread's dispatcher and executed asynchronously. For additional operations on the UI thread, you can get a reference to the UI thread's dispatcher thanks to the property . The action that will be executed on the UI thread. Invokes an action asynchronously on the UI thread. The action that must be executed. An object, which is returned immediately after BeginInvoke is called, that can be used to interact with the delegate as it is pending execution in the event queue. This method should be called once on the UI thread to ensure that the property is initialized. In a Silverlight application, call this method in the Application_Startup event handler, after the MainPage is constructed. In WPF, call this method on the static App() constructor. Resets the class by deleting the