C# Class Catel.Windows.Markup.UpdatableMarkupExtension

Markup extension that allows an update of the binding values.
This class is found at http://www.thomaslevesque.com/2009/07/28/wpf-a-markup-extension-that-can-update-its-target/.
Inheritance: MarkupExtension
Afficher le fichier Open project: Catel/Catel

Méthodes publiques

Méthode Description
ProvideValue ( IServiceProvider serviceProvider ) : object

When implemented in a derived class, returns an object that is provided as the value of the target property for this markup extension.

Méthodes protégées

Méthode Description
OnTargetObjectLoaded ( ) : void

Called when the target object is loaded. Note that this method will only be called if the target object is a FrameworkElement.

OnTargetObjectUnloaded ( ) : void

Called when the target object is unloaded. Note that this method will only be called if the target object is a FrameworkElement.

ProvideDynamicValue ( IServiceProvider serviceProvider ) : object

Provides the dynamic value.

UpdateValue ( ) : void

Updates the value.

Private Methods

Méthode Description
GetValue ( ) : object

Gets the value by combining the rights methods (so we don't have to repeat ourselves).

OnTargetObjectLoadedInternal ( object sender, RoutedEventArgs e ) : void
OnTargetObjectUnloadedInternal ( object sender, RoutedEventArgs e ) : void
ProvideDynamicValue ( ) : object

Method Details

OnTargetObjectLoaded() protected méthode

Called when the target object is loaded. Note that this method will only be called if the target object is a FrameworkElement.
protected OnTargetObjectLoaded ( ) : void
Résultat void

OnTargetObjectUnloaded() protected méthode

Called when the target object is unloaded. Note that this method will only be called if the target object is a FrameworkElement.
protected OnTargetObjectUnloaded ( ) : void
Résultat void

ProvideDynamicValue() protected méthode

Provides the dynamic value.
protected ProvideDynamicValue ( IServiceProvider serviceProvider ) : object
serviceProvider IServiceProvider The service provider.
Résultat object

ProvideValue() public final méthode

When implemented in a derived class, returns an object that is provided as the value of the target property for this markup extension.
public final ProvideValue ( IServiceProvider serviceProvider ) : object
serviceProvider IServiceProvider A service provider helper that can provide services for the markup extension.
Résultat object

UpdateValue() protected méthode

Updates the value.
protected UpdateValue ( ) : void
Résultat void