Inline.Name Property

Gets or sets a unique identification for the object. Name can only be set from initial parsing of XAML.

Namespace:  System.Windows.Documents
Assembly:  System.Windows (in System.Windows.dll)

public string Name { get; }
<inline Name="xamlNameString" ... />

Property Value

Type: System.String
The unique identifier for the object. This property is read-only for code, but write-only for XAML, due to special parser handling of XAML properties named "Name".

See XamlName Grammar for string value restrictions on Name. The value used for Name must conform to this grammar.

Inline is not a FrameworkElement. FrameworkElement is the class that implements Name support for most other Silverlight objects, such as Canvas, but Inline cannot be a FrameworkElement because it must function as a true inline for rendering and layout considerations. Therefore Inline supports its own Name and FindName implementations so that you can still retrieve XAML-instantiated instances of Inline classes such as Run at run time, and you can arbitrarily call FindName again on any Silverlight object you retrieved from calling FindName previously.

Silverlight

Supported in: 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

Show: