PlatformEffect<TContainer,TControl> Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Base class for platform-specific effect classes.
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
Type Parameters
- TContainer
- TControl
- Inheritance
Remarks
App developers derive from the
Xamarin.Forms.Platform.Android.PlatformEffect
,:Xamarin.Forms.Platform.iOS.PlatformEffect
,:Xamarin.Forms.Platform.UWP.PlatformEffect
:Xamarin.Forms.Platform.WinPhone.PlatformEffect
, or:Xamarin.Forms.Platform.WinRT.PlatformEffect,
:
Constructors
PlatformEffect<TContainer,TControl>() |
Creates a new platform-specific effect with default values. |
Properties
Container |
Returns the container for the platform-specific effect. |
Control |
Returns the control for the platform-specific effect. |
Element |
Gets the element to which the style is attached. (Inherited from Effect) |
IsAttached |
Gets a value that tells whether the effect is attached to an element. (Inherited from Effect) |
ResolveId |
Gets the ID that is used to resolve this effect at runtime. (Inherited from Effect) |
Methods
OnAttached() |
Method that is called after the effect is attached and made valid. (Inherited from Effect) |
OnDetached() |
Method that is called after the effect is detached and invalidated. (Inherited from Effect) |
OnElementPropertyChanged(PropertyChangedEventArgs) |
Method that is called when a element property has changed. |
SetContainer(TContainer) |
For internal use by the Xamarin.Forms platform. |
SetControl(TControl) |
For internal use by the Xamarin.Forms platform. |