Aracılığıyla paylaş


PropertyMapperExtensions.AppendToMapping Method

Definition

Overloads

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

Specify a method to be run after an existing property mapping but skip if the types do not match.

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

Specify a method to be run after an existing property mapping.

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

Source:
PropertyMapperExtensions.cs
Source:
PropertyMapperExtensions.cs

Specify a method to be run after an existing property mapping but skip if the types do not match.

public:
generic <typename TVirtualView, typename TViewHandler>
 where TVirtualView : Microsoft::Maui::IElement where TViewHandler : Microsoft::Maui::IElementHandler[System::Runtime::CompilerServices::Extension]
 static void AppendToMapping(Microsoft::Maui::IPropertyMapper<Microsoft::Maui::IElement ^, Microsoft::Maui::IElementHandler ^> ^ propertyMapper, System::String ^ key, Action<TViewHandler, TVirtualView> ^ method);
public static void AppendToMapping<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 AppendToMapping : 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 AppendToMapping(Of TVirtualView As IElement, TViewHandler As IElement) (propertyMapper As IPropertyMapper(Of IElement, IElementHandler), key As String, method As Action(Of TViewHandler, TVirtualView))

Type Parameters

TVirtualView

The cross-platform type.

TViewHandler

The handler type.

Parameters

propertyMapper
IPropertyMapper<IElement,IElementHandler>

The property mapper in which to change the mapping.

key
String

The name of the property.

method
Action<TViewHandler,TVirtualView>

The method to call after the existing mapping is finished.

Applies to

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

Source:
PropertyMapperExtensions.cs
Source:
PropertyMapperExtensions.cs

Specify a method to be run after an existing property mapping.

public:
generic <typename TVirtualView, typename TViewHandler>
 where TVirtualView : Microsoft::Maui::IElement where TViewHandler : Microsoft::Maui::IElementHandler[System::Runtime::CompilerServices::Extension]
 static void AppendToMapping(Microsoft::Maui::IPropertyMapper<TVirtualView, TViewHandler> ^ propertyMapper, System::String ^ key, Action<TViewHandler, TVirtualView> ^ method);
public static void AppendToMapping<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 AppendToMapping : 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 AppendToMapping(Of TVirtualView As IElement, TViewHandler As IElement) (propertyMapper As IPropertyMapper(Of TVirtualView, TViewHandler), key As String, method As Action(Of TViewHandler, TVirtualView))

Type Parameters

TVirtualView

The cross-platform type.

TViewHandler

The handler type.

Parameters

propertyMapper
IPropertyMapper<TVirtualView,TViewHandler>

The property mapper in which to change the mapping.

key
String

The name of the property.

method
Action<TViewHandler,TVirtualView>

The method to call after the existing mapping is finished.

Applies to