Delen via


ReferenceExtension Klas

Definitie

Biedt een XAML-markeringsextensie die een object retourneert op basis van de x:Name van de huidige XAML-naamscoop.

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
Overname
ReferenceExtension
Kenmerken
Implementeringen

Constructors

Name Description
ReferenceExtension()

Biedt een XAML-markeringsextensie die een object retourneert op basis van de x:Name van de huidige XAML-naamscoop.

Eigenschappen

Name Description
Name

Hiermee wordt de x:Name van het element opgehaald of ingesteld om naar te verwijzen.

Methoden

Name Description
ProvideValue(IServiceProvider)

Biedt een XAML-markeringsextensie die een object retourneert op basis van de x:Name van de huidige XAML-naamscoop.

Van toepassing op