Class ElementReference
This markup extension can provide a reference to an element by name.
Inheritance
System.Object
System.Windows.Markup.MarkupExtension
ElementReference
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Sartorius.SAF.Presentation.Markup
Assembly: Sartorius.SAF.Presentation.dll
Syntax
public class ElementReference : MarkupExtension
Remarks
You can use this markup extension to provide references to framework elements in behaviors (e.g. OverlayEffectTriggerBehavior).
The markup extension support forward lookup for element names.
Constructors
View SourceElementReference()
Initializes a new instance of the ElementReference class.
Declaration
public ElementReference()
ElementReference(String)
Initializes a new instance of the ElementReference class.
Declaration
public ElementReference(string elementName)
Parameters
Type | Name | Description |
---|---|---|
System.String | elementName | Name of the element. |
Properties
View SourceElementName
Gets or sets the name of the element.
Declaration
[ConstructorArgument("elementName")]
public string ElementName { get; set; }
Property Value
Type | Description |
---|---|
System.String | The name of the element. |
Methods
View SourceProvideValue(IServiceProvider)
When implemented in a derived class, returns an object that is provided as the value of the target property for this markup extension.
Declaration
public override object ProvideValue(IServiceProvider serviceProvider)
Parameters
Type | Name | Description |
---|---|---|
System.IServiceProvider | serviceProvider | A service provider helper that can provide services for the markup extension. |
Returns
Type | Description |
---|---|
System.Object | The object value to set on the property where the extension is applied. |
Overrides
System.Windows.Markup.MarkupExtension.ProvideValue(System.IServiceProvider)