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
Show file Open project: Catel/Catel

Public Methods

Method 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.

Protected Methods

Method 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

Method 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 method

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
return void

OnTargetObjectUnloaded() protected method

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
return void

ProvideDynamicValue() protected method

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

ProvideValue() public final method

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.
return object

UpdateValue() protected method

Updates the value.
protected UpdateValue ( ) : void
return void