ReferenceExtension Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides a XAML markup extension that returns an object by its x:Name from the current XAML namescope.
public ref class ReferenceExtension : Microsoft::Maui::Controls::Xaml::IMarkupExtension
[Microsoft.Maui.Controls.ContentProperty("Name")]
[Microsoft.Maui.Controls.Xaml.RequireService(new System.Type[] { typeof(Microsoft.Maui.Controls.Xaml.IReferenceProvider), typeof(Microsoft.Maui.Controls.Xaml.IProvideValueTarget) })]
public class ReferenceExtension : Microsoft.Maui.Controls.Xaml.IMarkupExtension
[Microsoft.Maui.Controls.ContentProperty("Name")]
public class ReferenceExtension : Microsoft.Maui.Controls.Xaml.IMarkupExtension
[<Microsoft.Maui.Controls.ContentProperty("Name")>]
[<Microsoft.Maui.Controls.Xaml.RequireService(new System.Type[] { typeof(Microsoft.Maui.Controls.Xaml.IReferenceProvider), typeof(Microsoft.Maui.Controls.Xaml.IProvideValueTarget) })>]
type ReferenceExtension = class
interface IMarkupExtension
[<Microsoft.Maui.Controls.ContentProperty("Name")>]
type ReferenceExtension = class
interface IMarkupExtension
Public Class ReferenceExtension
Implements IMarkupExtension
- Inheritance
-
ReferenceExtension
- Attributes
- Implements
Constructors
| Name | Description |
|---|---|
| ReferenceExtension() | |
Properties
| Name | Description |
|---|---|
| Name |
Gets or sets the x:Name of the element to reference. |
Methods
| Name | Description |
|---|---|
| ProvideValue(IServiceProvider) | |