NoesisGUI

TemplateBindingExtension Class

namespace Noesis | MSDN

Implements a markup extension that supports the binding between the value of a property in a template and the value of some other exposed property on the templated control.

Using a TemplateBinding is equivalent to using a Binding with the Source property set to RelativeSource.TemplatedParent.

The method ProvideValue returns a TemplateBindingExpression.

Example:

<ControlTemplate Key="buttonTemplate" TargetType="{x:Type Button}">
  <Border Background="{TemplateBinding Background}"/>
</ControlTemplate>

Inheritance Hierarchy

TemplateBindingExtension

INDEX Class Hierarchy Index

Properties


Name Description
None Property Gets or sets the source property being bound to

DP_ Dependency Property      RO_ Read-only


Methods

From MarkupExtension

Name Description
ProvideValue Returns an object that is provided as the value of the target property for this extension

Events

TemplateBindingExtension has no events

© 2017 Noesis Technologies