NoesisGUI

StaticExtension Class

namespace Noesis | MSDN

Implements a markup extension that returns static field and property references.

You typically use static references to obtain static values from types, including from types that cannot be instantiated in XAML because the type is static. Common examples of cases where {x:Static} is useful include values that can be thought of as constants, such as fixed math values or unique keys for states

<Style x:Key="{x:Static MenuItem.SeparatorStyleKey}">
  <Setter Property="Foreground" Value="{x:Static SystemColors.ControlTextBrushKey}"/>
</Style>

Inheritance Hierarchy

StaticExtension

INDEX Class Hierarchy Index

Methods

From MarkupExtension

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

Properties


Name Description
None Member Gets or sets a member name string that is used to resolve a static field or property based on the service-provided type resolver

DP_ Dependency Property      RO_ Read-only


Events

StaticExtension has no events

© 2017 Noesis Technologies