다음을 통해 공유


PropertyMapperExtensions.ModifyMapping 메서드

정의

오버로드

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

속성 매핑을 수정하지만 형식이 일치하지 않는 경우 이전 매핑을 호출합니다.

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

속성 매핑을 수정합니다.

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

Source:
PropertyMapperExtensions.cs
Source:
PropertyMapperExtensions.cs

속성 매핑을 수정하지만 형식이 일치하지 않는 경우 이전 매핑을 호출합니다.

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

형식 매개 변수

TVirtualView

플랫폼 간 유형입니다.

TViewHandler

처리기 형식입니다.

매개 변수

propertyMapper
IPropertyMapper<IElement,IElementHandler>

매핑을 변경할 속성 매퍼입니다.

key
String

속성의 이름입니다.

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

속성을 업데이트할 때 호출할 수정된 메서드입니다.

적용 대상

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

Source:
PropertyMapperExtensions.cs
Source:
PropertyMapperExtensions.cs

속성 매핑을 수정합니다.

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

형식 매개 변수

TVirtualView

플랫폼 간 유형입니다.

TViewHandler

처리기 형식입니다.

매개 변수

propertyMapper
IPropertyMapper<TVirtualView,TViewHandler>

매핑을 변경할 속성 매퍼입니다.

key
String

속성의 이름입니다.

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

속성을 업데이트할 때 호출할 수정된 메서드입니다.

적용 대상