GalaSoft.MvvmLight.Extras.SL4
Helper class for dispatcher operations 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.
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.
Gets a reference to the UI thread's dispatcher, after the
method has been called on the UI thread.
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
Called when this trigger is attached to a FrameworkElement.
This method is here for compatibility
with the Silverlight version.
The command that must be executed when
this trigger is invoked.
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.
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.