共用方式為


CommandMapper<TVirtualView,TViewHandler> 類別

定義

generic <typename TVirtualView, typename TViewHandler>
 where TVirtualView : IElement where TViewHandler : IElementHandlerpublic ref class CommandMapper : Microsoft::Maui::CommandMapper, Microsoft::Maui::ICommandMapper<TVirtualView, TViewHandler>
public class CommandMapper<TVirtualView,TViewHandler> : Microsoft.Maui.CommandMapper, Microsoft.Maui.ICommandMapper<TVirtualView,TViewHandler> where TVirtualView : IElement where TViewHandler : IElementHandler
type CommandMapper<'VirtualView, 'ViewHandler (requires 'VirtualView :> IElement and 'ViewHandler :> IElementHandler)> = class
    inherit CommandMapper
    interface ICommandMapper<'VirtualView, 'ViewHandler (requires 'VirtualView :> IElement and 'ViewHandler :> IElementHandler)>
    interface ICommandMapper
Public Class CommandMapper(Of TVirtualView, TViewHandler)
Inherits CommandMapper
Implements ICommandMapper(Of TVirtualView, TViewHandler)

類型參數

TVirtualView
TViewHandler
繼承
CommandMapper<TVirtualView,TViewHandler>
衍生
實作

建構函式

CommandMapper<TVirtualView,TViewHandler>()
CommandMapper<TVirtualView,TViewHandler>(CommandMapper)

屬性

Chained (繼承來源 CommandMapper)
Item[String]

方法

Add(String, Action<TViewHandler,TVirtualView,Object>)
Add(String, Action<TViewHandler,TVirtualView>)
GetCommand(String) (繼承來源 CommandMapper)
Invoke(IElementHandler, IElement, String, Object) (繼承來源 CommandMapper)

擴充方法

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

指定要在現有命令對應之後執行的方法。

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

指定要在現有命令對應之後執行的方法。

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

就地修改命令對應。

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

就地修改命令對應。

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

指定要在現有命令對應之前執行的方法。

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

指定要在現有命令對應之前執行的方法。

適用於