C# Класс CustomMarkupExtension.MarkupExtensions.BindingDecoratorBase

Наследование: System.Windows.Markup.MarkupExtension
Показать файл Открыть проект

Private Properties

Свойство Тип Описание

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
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.

Описание методов

ProvideValue() публичный Метод

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.
Результат object

TryGetTargetItems() защищенный Метод

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.
Результат bool