Share via


Button.On<T> 方法

定义

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

public:
generic <typename T>
 where T : Microsoft::Maui::Controls::IConfigPlatform virtual Microsoft::Maui::Controls::IPlatformElementConfiguration<T, Microsoft::Maui::Controls::Button ^> ^ On();
public Microsoft.Maui.Controls.IPlatformElementConfiguration<T,Microsoft.Maui.Controls.Button> On<T> () where T : Microsoft.Maui.Controls.IConfigPlatform;
abstract member On : unit -> Microsoft.Maui.Controls.IPlatformElementConfiguration<'T, Microsoft.Maui.Controls.Button (requires 'T :> Microsoft.Maui.Controls.IConfigPlatform)> (requires 'T :> Microsoft.Maui.Controls.IConfigPlatform)
override this.On : unit -> Microsoft.Maui.Controls.IPlatformElementConfiguration<'T, Microsoft.Maui.Controls.Button (requires 'T :> Microsoft.Maui.Controls.IConfigPlatform)> (requires 'T :> Microsoft.Maui.Controls.IConfigPlatform)
Public Function On(Of T As IConfigPlatform) () As IPlatformElementConfiguration(Of T, Button)

类型参数

T

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

返回

特定于平台的 TElement实例。

实现

适用于