Show / Hide Table of Contents

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 Source

ElementReference()

Initializes a new instance of the ElementReference class.

Declaration
public ElementReference()
View Source

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 Source

ElementName

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 Source

ProvideValue(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)

Extension Methods

CollectionExtensions.AddRange<T, TCollection>(TCollection, IEnumerable<T>)
SerializableObjectCloneExtension.Clone<T>(T)
  • View Source
Back to top Generated by DocFX