CommandMapperExtensions.AppendToMapping 方法

定义

重载

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

指定要在现有命令映射后运行的方法。

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

指定要在现有命令映射之后运行的方法,但如果类型不匹配,则跳过。

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

指定要在现有命令映射后运行的方法。

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

Source:
CommandMapperExtensions.cs
Source:
CommandMapperExtensions.cs

指定要在现有命令映射后运行的方法。

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))

类型参数

TVirtualView

跨平台类型。

TViewHandler

处理程序类型。

参数

commandMapper
CommandMapper<TVirtualView,TViewHandler>

要在其中更改映射的命令映射器。

key
String

命令的名称。

method
Action<TViewHandler,TVirtualView,Object>

完成现有映射后要调用的方法。

适用于

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

Source:
CommandMapperExtensions.cs
Source:
CommandMapperExtensions.cs

指定要在现有命令映射之后运行的方法,但如果类型不匹配,则跳过。

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))

类型参数

TVirtualView

跨平台类型。

TViewHandler

处理程序类型。

参数

commandMapper
ICommandMapper<IElement,IElementHandler>

要在其中更改映射的命令映射器。

key
String

命令的名称。

method
Action<TViewHandler,TVirtualView,Object>

完成现有映射后要调用的方法。

适用于

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

Source:
CommandMapperExtensions.cs
Source:
CommandMapperExtensions.cs

指定要在现有命令映射后运行的方法。

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))

类型参数

TVirtualView

跨平台类型。

TViewHandler

处理程序类型。

参数

commandMapper
ICommandMapper<TVirtualView,TViewHandler>

要在其中更改映射的命令映射器。

key
String

命令的名称。

method
Action<TViewHandler,TVirtualView,Object>

完成现有映射后要调用的方法。

适用于