IElementConfiguration<TElement>.On<T> 方法

定义

返回此 TElement 的特定于平台的实例,可对其调用特定于平台的方法。

public:
generic <typename T>
 where T : Microsoft::Maui::Controls::IConfigPlatform Microsoft::Maui::Controls::IPlatformElementConfiguration<T, TElement> ^ On();
public Microsoft.Maui.Controls.IPlatformElementConfiguration<T,out TElement> On<T> () where T : Microsoft.Maui.Controls.IConfigPlatform;
abstract member On : unit -> Microsoft.Maui.Controls.IPlatformElementConfiguration<'T, 'Element (requires 'T :> Microsoft.Maui.Controls.IConfigPlatform and 'Element :> Microsoft.Maui.Controls.Element)> (requires 'T :> Microsoft.Maui.Controls.IConfigPlatform)
Public Function On(Of T As IConfigPlatform) () As IPlatformElementConfiguration(Of T, Out TElement)

类型参数

T

一种 IConfigPlatform 类型,指定要检索的平台。

返回

特定于平台的 TElement实例。

适用于