C# Class CustomMarkupExtension.MarkupExtensions.BindingDecoratorBase

Inheritance: System.Windows.Markup.MarkupExtension
Afficher le fichier Open project: RookieOne/WPF-Input-Validation

Private Properties

Свойство Type Description

Méthodes publiques

Méthode Description
ProvideValue ( IServiceProvider provider ) : object

This basic implementation just sets a binding on the targeted DependencyObject and returns the appropriate BindingExpressionBase instance.
All this work is delegated to the decorated Binding instance.

Méthodes protégées

Méthode Description
TryGetTargetItems ( IServiceProvider provider, DependencyObject &target, DependencyProperty &dp ) : bool

Validates a service provider that was submitted to the ProvideValue method. This method checks whether the provider is null (happens at design time), whether it provides an IProvideValueTarget service, and whether the service's IProvideValueTarget.TargetObject and IProvideValueTarget.TargetProperty properties are valid DependencyObject and DependencyProperty instances.

Method Details

ProvideValue() public méthode

This basic implementation just sets a binding on the targeted DependencyObject and returns the appropriate BindingExpressionBase instance.
All this work is delegated to the decorated Binding instance.
public ProvideValue ( IServiceProvider provider ) : object
provider IServiceProvider Object that can provide services for the markup /// extension.
Résultat object

TryGetTargetItems() protected méthode

Validates a service provider that was submitted to the ProvideValue method. This method checks whether the provider is null (happens at design time), whether it provides an IProvideValueTarget service, and whether the service's IProvideValueTarget.TargetObject and IProvideValueTarget.TargetProperty properties are valid DependencyObject and DependencyProperty instances.
protected TryGetTargetItems ( IServiceProvider provider, DependencyObject &target, DependencyProperty &dp ) : bool
provider IServiceProvider The provider to be validated.
target System.Windows.DependencyObject The binding target of the binding.
dp System.Windows.DependencyProperty The target property of the binding.
Résultat bool