Sdílet prostřednictvím


CommandMapperExtensions.AppendToMapping Metoda

Definice

Přetížení

AppendToMapping<TVirtualView,TViewHandler>(CommandMapper<TVirtualView,TViewHandler>, String, Action<TViewHandler,TVirtualView,Object>)

Zadejte metodu, která se má spustit po mapování existujícího příkazu.

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

Zadejte metodu, která se má spustit po mapování existujícího příkazu, ale pokud se typy neshodují, přeskočte.

AppendToMapping<TVirtualView,TViewHandler>(ICommandMapper<TVirtualView,TViewHandler>, String, Action<TViewHandler,TVirtualView,Object>)

Zadejte metodu, která se má spustit po mapování existujícího příkazu.

AppendToMapping<TVirtualView,TViewHandler>(CommandMapper<TVirtualView,TViewHandler>, String, Action<TViewHandler,TVirtualView,Object>)

Zdroj:
CommandMapperExtensions.cs
Zdroj:
CommandMapperExtensions.cs

Zadejte metodu, která se má spustit po mapování existujícího příkazu.

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::CommandMapper<TVirtualView, TViewHandler> ^ commandMapper, System::String ^ key, Action<TViewHandler, TVirtualView, System::Object ^> ^ method);
public static void AppendToMapping<TVirtualView,TViewHandler> (this Microsoft.Maui.CommandMapper<TVirtualView,TViewHandler> commandMapper, string key, Action<TViewHandler,TVirtualView,object?> method) where TVirtualView : Microsoft.Maui.IElement where TViewHandler : Microsoft.Maui.IElementHandler;
static member AppendToMapping : Microsoft.Maui.CommandMapper<'VirtualView, 'ViewHandler (requires 'VirtualView :> Microsoft.Maui.IElement and 'ViewHandler :> Microsoft.Maui.IElementHandler)> * string * Action<'ViewHandler, 'VirtualView, obj (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) (commandMapper As CommandMapper(Of TVirtualView, TViewHandler), key As String, method As Action(Of TViewHandler, TVirtualView, Object))

Parametry typu

TVirtualView

Typ pro různé platformy.

TViewHandler

Typ obslužné rutiny.

Parametry

commandMapper
CommandMapper<TVirtualView,TViewHandler>

Mapovač příkazů, ve kterém chcete změnit mapování.

key
String

Název příkazu.

method
Action<TViewHandler,TVirtualView,Object>

Metoda, která se má volat po dokončení existujícího mapování.

Platí pro

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

Zdroj:
CommandMapperExtensions.cs
Zdroj:
CommandMapperExtensions.cs

Zadejte metodu, která se má spustit po mapování existujícího příkazu, ale pokud se typy neshodují, přeskočte.

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::ICommandMapper<Microsoft::Maui::IElement ^, Microsoft::Maui::IElementHandler ^> ^ commandMapper, System::String ^ key, Action<TViewHandler, TVirtualView, System::Object ^> ^ method);
public static void AppendToMapping<TVirtualView,TViewHandler> (this Microsoft.Maui.ICommandMapper<Microsoft.Maui.IElement,Microsoft.Maui.IElementHandler> commandMapper, string key, Action<TViewHandler,TVirtualView,object?> method) where TVirtualView : Microsoft.Maui.IElement where TViewHandler : Microsoft.Maui.IElementHandler;
static member AppendToMapping : Microsoft.Maui.ICommandMapper<Microsoft.Maui.IElement, Microsoft.Maui.IElementHandler> * string * Action<'ViewHandler, 'VirtualView, obj (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) (commandMapper As ICommandMapper(Of IElement, IElementHandler), key As String, method As Action(Of TViewHandler, TVirtualView, Object))

Parametry typu

TVirtualView

Typ pro různé platformy.

TViewHandler

Typ obslužné rutiny.

Parametry

commandMapper
ICommandMapper<IElement,IElementHandler>

Mapovač příkazů, ve kterém chcete změnit mapování.

key
String

Název příkazu.

method
Action<TViewHandler,TVirtualView,Object>

Metoda, která se má volat po dokončení existujícího mapování.

Platí pro

AppendToMapping<TVirtualView,TViewHandler>(ICommandMapper<TVirtualView,TViewHandler>, String, Action<TViewHandler,TVirtualView,Object>)

Zdroj:
CommandMapperExtensions.cs
Zdroj:
CommandMapperExtensions.cs

Zadejte metodu, která se má spustit po mapování existujícího příkazu.

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::ICommandMapper<TVirtualView, TViewHandler> ^ commandMapper, System::String ^ key, Action<TViewHandler, TVirtualView, System::Object ^> ^ method);
public static void AppendToMapping<TVirtualView,TViewHandler> (this Microsoft.Maui.ICommandMapper<TVirtualView,TViewHandler> commandMapper, string key, Action<TViewHandler,TVirtualView,object?> method) where TVirtualView : Microsoft.Maui.IElement where TViewHandler : Microsoft.Maui.IElementHandler;
static member AppendToMapping : Microsoft.Maui.ICommandMapper<'VirtualView, 'ViewHandler (requires 'VirtualView :> Microsoft.Maui.IElement and 'ViewHandler :> Microsoft.Maui.IElementHandler)> * string * Action<'ViewHandler, 'VirtualView, obj (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) (commandMapper As ICommandMapper(Of TVirtualView, TViewHandler), key As String, method As Action(Of TViewHandler, TVirtualView, Object))

Parametry typu

TVirtualView

Typ pro různé platformy.

TViewHandler

Typ obslužné rutiny.

Parametry

commandMapper
ICommandMapper<TVirtualView,TViewHandler>

Mapovač příkazů, ve kterém chcete změnit mapování.

key
String

Název příkazu.

method
Action<TViewHandler,TVirtualView,Object>

Metoda, která se má volat po dokončení existujícího mapování.

Platí pro