PlatformEffect<TContainer,TControl> 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
平台特定效果類別的基底類別。
public abstract class PlatformEffect<TContainer,TControl> : Xamarin.Forms.Effect where TContainer : class where TControl : class
type PlatformEffect<'Container, 'Control (requires 'Container : null and 'Control : null)> = class
inherit Effect
類型參數
- TContainer
- TControl
- 繼承
備註
應用程式開發人員衍生自
Xamarin.Forms.Platform.Android.PlatformEffect
,Xamarin.Forms.Platform.iOS.PlatformEffect
,Xamarin.Forms.Platform.UWP.PlatformEffect
Xamarin.Forms.Platform.WinPhone.PlatformEffect
或Xamarin.Forms.Platform.WinRT.PlatformEffect,
建構函式
PlatformEffect<TContainer,TControl>() |
使用預設值建立新的平台特定效果。 |
屬性
Container |
傳回平台特定效果的容器。 |
Control |
傳回平台特定效果的控制項。 |
Element |
取得附加樣式的目標項目。 (繼承來源 Effect) |
IsAttached |
取得值,指出是否將效果附加至項目。 (繼承來源 Effect) |
ResolveId |
取得用來在執行階段解析此效果的識別碼。 (繼承來源 Effect) |
方法
OnAttached() |
附加效果並使它變成有效之後呼叫的方法。 (繼承來源 Effect) |
OnDetached() |
中斷連結效果並使它變成無效之後呼叫的方法。 (繼承來源 Effect) |
OnElementPropertyChanged(PropertyChangedEventArgs) |
項目屬性變更時所呼叫的方法。 |
SetContainer(TContainer) |
供 Xamarin.Forms 平台內部使用。 |
SetControl(TControl) |
供 Xamarin.Forms 平台內部使用。 |