Condividi tramite


PropertyMapperExtensions.ModifyMapping Metodo

Definizione

Overload

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

Modificare un mapping delle proprietà sul posto, ma chiamare il mapping precedente se i tipi non corrispondono.

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

Modificare un mapping delle proprietà sul posto.

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

Origine:
PropertyMapperExtensions.cs
Origine:
PropertyMapperExtensions.cs

Modificare un mapping delle proprietà sul posto, ma chiamare il mapping precedente se i tipi non corrispondono.

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

Parametri di tipo

TVirtualView

Tipo multipiattaforma.

TViewHandler

Tipo di gestore.

Parametri

propertyMapper
IPropertyMapper<IElement,IElementHandler>

Mapper della proprietà in cui modificare il mapping.

key
String

Nome della proprietà.

method
Action<TViewHandler,TVirtualView,Action<IElementHandler,IElement>>

Metodo modificato da chiamare quando la proprietà viene aggiornata.

Si applica a

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

Origine:
PropertyMapperExtensions.cs
Origine:
PropertyMapperExtensions.cs

Modificare un mapping delle proprietà sul posto.

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

Parametri di tipo

TVirtualView

Tipo multipiattaforma.

TViewHandler

Tipo di gestore.

Parametri

propertyMapper
IPropertyMapper<TVirtualView,TViewHandler>

Mapper della proprietà in cui modificare il mapping.

key
String

Nome della proprietà.

method
Action<TViewHandler,TVirtualView,Action<IElementHandler,IElement>>

Metodo modificato da chiamare quando la proprietà viene aggiornata.

Si applica a