Compartilhar via


CommandMapperExtensions.ModifyMapping Método

Definição

Sobrecargas

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

Modifique um mapeamento de comando no local.

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

Modifique um mapeamento de comando em vigor, mas chame o mapeamento anterior se os tipos não corresponderem.

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

Modifique um mapeamento de comando no local.

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

Origem:
CommandMapperExtensions.cs
Origem:
CommandMapperExtensions.cs

Modifique um mapeamento de comando no local.

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

Parâmetros de tipo

TVirtualView

O tipo multiplataforma.

TViewHandler

O tipo de manipulador.

Parâmetros

commandMapper
CommandMapper<TVirtualView,TViewHandler>

O mapeador de comando no qual alterar o mapeamento.

key
String

O nome do comando.

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

O método modificado a ser chamado quando o comando é atualizado.

Aplica-se a

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

Origem:
CommandMapperExtensions.cs
Origem:
CommandMapperExtensions.cs

Modifique um mapeamento de comando em vigor, mas chame o mapeamento anterior se os tipos não corresponderem.

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

Parâmetros de tipo

TVirtualView

O tipo multiplataforma.

TViewHandler

O tipo de manipulador.

Parâmetros

commandMapper
ICommandMapper<IElement,IElementHandler>

O mapeador de comando no qual alterar o mapeamento.

key
String

O nome do comando.

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

O método modificado a ser chamado quando o comando é atualizado.

Aplica-se a

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

Origem:
CommandMapperExtensions.cs
Origem:
CommandMapperExtensions.cs

Modifique um mapeamento de comando no local.

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

Parâmetros de tipo

TVirtualView

O tipo multiplataforma.

TViewHandler

O tipo de manipulador.

Parâmetros

commandMapper
ICommandMapper<TVirtualView,TViewHandler>

O mapeador de comando no qual alterar o mapeamento.

key
String

O nome do comando.

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

O método modificado a ser chamado quando o comando é atualizado.

Aplica-se a