Xamarin.Forms Guides | Samples

Xamarin.Forms.HandlerAttribute Class

An abstract attribute whose subclasses specify the platform-specific renderers for Xamarin.Forms abstract controls.

See Also: HandlerAttribute

Syntax

[System.AttributeUsage(System.AttributeTargets.Assembly, AllowMultiple=true)]
public abstract class HandlerAttribute : Attribute

Requirements

Namespace: Xamarin.Forms
Assembly: Xamarin.Forms.Core (in Xamarin.Forms.Core.dll)
Assembly Versions: 1.0.0.0, 1.1.0.0, 1.2.0.0, 1.3.0.0, 1.4.0.0, 1.5.0.0, 2.0.0.0

The members of Xamarin.Forms.HandlerAttribute are listed below.

See Also: Attribute

Protected Constructors

Creates a new HandlerAttribute object that maps events from target to handler.

Public Methods

ShouldRegister() : Boolean
Returns a Boolean value that indicates whether the runtime should automatically register the handler for the target.