Sdílet prostřednictvím


PropertyMapperExtensions.PrependToMapping Metoda

Definice

Přetížení

PrependToMapping<TVirtualView,TViewHandler>(IPropertyMapper<IElement,IElementHandler>, String, Action<TViewHandler,TVirtualView>)

Zadejte metodu, která se má spustit před existujícím mapováním vlastností, ale pokud se typy neshodují, přeskočte ji.

PrependToMapping<TVirtualView,TViewHandler>(IPropertyMapper<TVirtualView,TViewHandler>, String, Action<TViewHandler,TVirtualView>)

Zadejte metodu, která se má spustit před existujícím mapováním vlastností.

PrependToMapping<TVirtualView,TViewHandler>(IPropertyMapper<IElement,IElementHandler>, String, Action<TViewHandler,TVirtualView>)

Zdroj:
PropertyMapperExtensions.cs
Zdroj:
PropertyMapperExtensions.cs

Zadejte metodu, která se má spustit před existujícím mapováním vlastností, ale pokud se typy neshodují, přeskočte ji.

public:
generic <typename TVirtualView, typename TViewHandler>
 where TVirtualView : Microsoft::Maui::IElement where TViewHandler : Microsoft::Maui::IElementHandler[System::Runtime::CompilerServices::Extension]
 static void PrependToMapping(Microsoft::Maui::IPropertyMapper<Microsoft::Maui::IElement ^, Microsoft::Maui::IElementHandler ^> ^ propertyMapper, System::String ^ key, Action<TViewHandler, TVirtualView> ^ method);
public static void PrependToMapping<TVirtualView,TViewHandler> (this Microsoft.Maui.IPropertyMapper<Microsoft.Maui.IElement,Microsoft.Maui.IElementHandler> propertyMapper, string key, Action<TViewHandler,TVirtualView> method) where TVirtualView : Microsoft.Maui.IElement where TViewHandler : Microsoft.Maui.IElementHandler;
static member PrependToMapping : Microsoft.Maui.IPropertyMapper<Microsoft.Maui.IElement, Microsoft.Maui.IElementHandler> * string * Action<'ViewHandler, 'VirtualView (requires 'ViewHandler :> Microsoft.Maui.IElementHandler and 'VirtualView :> Microsoft.Maui.IElement)> -> unit (requires 'VirtualView :> Microsoft.Maui.IElement and 'ViewHandler :> Microsoft.Maui.IElementHandler)
<Extension()>
Public Sub PrependToMapping(Of TVirtualView As IElement, TViewHandler As IElement) (propertyMapper As IPropertyMapper(Of IElement, IElementHandler), key As String, method As Action(Of TViewHandler, TVirtualView))

Parametry typu

TVirtualView

Typ pro různé platformy.

TViewHandler

Typ obslužné rutiny.

Parametry

propertyMapper
IPropertyMapper<IElement,IElementHandler>

Mapovač vlastností, ve kterém chcete změnit mapování.

key
String

Název vlastnosti

method
Action<TViewHandler,TVirtualView>

Metoda, která se má volat před zahájením existujícího mapování.

Platí pro

PrependToMapping<TVirtualView,TViewHandler>(IPropertyMapper<TVirtualView,TViewHandler>, String, Action<TViewHandler,TVirtualView>)

Zdroj:
PropertyMapperExtensions.cs
Zdroj:
PropertyMapperExtensions.cs

Zadejte metodu, která se má spustit před existujícím mapováním vlastností.

public:
generic <typename TVirtualView, typename TViewHandler>
 where TVirtualView : Microsoft::Maui::IElement where TViewHandler : Microsoft::Maui::IElementHandler[System::Runtime::CompilerServices::Extension]
 static void PrependToMapping(Microsoft::Maui::IPropertyMapper<TVirtualView, TViewHandler> ^ propertyMapper, System::String ^ key, Action<TViewHandler, TVirtualView> ^ method);
public static void PrependToMapping<TVirtualView,TViewHandler> (this Microsoft.Maui.IPropertyMapper<TVirtualView,TViewHandler> propertyMapper, string key, Action<TViewHandler,TVirtualView> method) where TVirtualView : Microsoft.Maui.IElement where TViewHandler : Microsoft.Maui.IElementHandler;
static member PrependToMapping : Microsoft.Maui.IPropertyMapper<'VirtualView, 'ViewHandler (requires 'VirtualView :> Microsoft.Maui.IElement and 'ViewHandler :> Microsoft.Maui.IElementHandler)> * string * Action<'ViewHandler, 'VirtualView (requires 'ViewHandler :> Microsoft.Maui.IElementHandler and 'VirtualView :> Microsoft.Maui.IElement)> -> unit (requires 'VirtualView :> Microsoft.Maui.IElement and 'ViewHandler :> Microsoft.Maui.IElementHandler)
<Extension()>
Public Sub PrependToMapping(Of TVirtualView As IElement, TViewHandler As IElement) (propertyMapper As IPropertyMapper(Of TVirtualView, TViewHandler), key As String, method As Action(Of TViewHandler, TVirtualView))

Parametry typu

TVirtualView

Typ pro různé platformy.

TViewHandler

Typ obslužné rutiny.

Parametry

propertyMapper
IPropertyMapper<TVirtualView,TViewHandler>

Mapovač vlastností, ve kterém chcete změnit mapování.

key
String

Název vlastnosti

method
Action<TViewHandler,TVirtualView>

Metoda, která se má volat před zahájením existujícího mapování.

Platí pro