Xamarin.Forms by Microsoft

<PackageReference Include="Xamarin.Forms" Version="5.0.0.2244" />

.NET API 1,475,488 bytes

 VisualElement

A Element that occupies an area on the screen, has a visual appearance, and can obtain touch input.
public class FocusRequestArgs : EventArgs

public static readonly BindableProperty AnchorXProperty

Identifies the AnchorX bindable property.

public static readonly BindableProperty AnchorYProperty

Identifies the AnchorY bindable property.

Identifies the BackgroundColor bindable property.

public static readonly BindableProperty BackgroundProperty

public static readonly BindableProperty BehaviorsProperty

Identifies the Behaviors bindable property.

public static readonly BindableProperty ClipProperty

public static readonly BindableProperty FlowDirectionProperty

Backing store for the FlowDirection property.

public static readonly BindableProperty HeightProperty

Identifies the Height bindable property.

public static readonly BindableProperty HeightRequestProperty

Backing store for the HeightRequest property.

Identifies the InputTransparent bindable property.

public static readonly BindableProperty IsEnabledProperty

Identifies the IsEnabled bindable property.

public static readonly BindableProperty IsFocusedProperty

Identifies the IsFocused bindable property.

For internal use by the Xamarin.Forms platform.

public static readonly BindableProperty IsTabStopProperty

The backing store for the IsTabStop field.

public static readonly BindableProperty IsVisibleProperty

Identifies the IsVisible bindable property.

Backing store for the MinimumHeightRequest property.

Backing store for the MinimumWidthRequest property.

public static readonly BindableProperty NavigationProperty

public static readonly BindableProperty OpacityProperty

Identifies the Opacity bindable property.

public static readonly BindableProperty RotationProperty

Identifies the Rotation bindable property.

public static readonly BindableProperty RotationXProperty

Identifies the RotationX bindable property.

public static readonly BindableProperty RotationYProperty

Identifies the RotationY bindable property.

public static readonly BindableProperty ScaleProperty

Identifies the Scale bindable property.

public static readonly BindableProperty ScaleXProperty

Backing store for the ScaleX property.

public static readonly BindableProperty ScaleYProperty

Backing store for the ScaleY property.

public static readonly BindableProperty StyleProperty

public static readonly BindableProperty TabIndexProperty

The backing store for the TabIndex field.

public static readonly BindableProperty TranslationXProperty

Identifies the TranslationX bindable property.

public static readonly BindableProperty TranslationYProperty

Identifies the TranslationY bindable property.

public static readonly BindableProperty TriggersProperty

Identifies the Triggers bindable property.

public static readonly BindableProperty VisualProperty

The backing store for the Visual field.

public static readonly BindableProperty WidthProperty

Identifies the Width bindable property.

public static readonly BindableProperty WidthRequestProperty

Backing store for the WidthRequest property.

public static readonly BindableProperty XProperty

Identifies the X bindable property.

public static readonly BindableProperty YProperty

Identifies the Y bindable property.

public double AnchorX { get; set; }

Gets or sets the X component of the center point for any transform, relative to the bounds of the element. This is a bindable property.

public double AnchorY { get; set; }

Gets or sets the Y component of the center point for any transform, relative to the bounds of the element. This is a bindable property.

public Brush Background { get; set; }

public Color BackgroundColor { get; set; }

Gets or sets the color which will fill the background of a VisualElement. This is a bindable property.

public bool Batched { get; }

For internal use by the Xamarin.Forms platform.

public IList<Behavior> Behaviors { get; }

Gets the list of Behaviors associated to this element. This is a bindable property.

public Rectangle Bounds { get; }

Gets the bounds of the element.

public Geometry Clip { get; set; }

public bool DisableLayout { get; set; }

For internal use by the Xamarin.Forms platform.

public FlowDirection FlowDirection { get; set; }

Gets or sets the layout flow direction.

public double Height { get; }

Gets the current rendered height of this element. This is a read-only bindable property.

public double HeightRequest { get; set; }

Gets or sets the desired height override of this element.

public bool InputTransparent { get; set; }

Gets or sets a value indicating whether this element should be involved in the user interaction cycle. This is a bindable property.

public bool IsEnabled { get; set; }

Gets or sets a value indicating whether this element is enabled in the user interface. This is a bindable property.

public bool IsFocused { get; }

Gets a value indicating whether this element is focused currently. This is a bindable property.

public bool IsInNativeLayout { get; set; }

For internal use by the Xamarin.Forms platform.

public bool IsNativeStateConsistent { get; set; }

For internal use by the Xamarin.Forms platform.

public bool IsPlatformEnabled { get; set; }

For internal use by the Xamarin.Forms platform.

public bool IsTabStop { get; set; }

Gets or sets a value that indicates whether this element is included in tab navigation. This is a bindable property.

public bool IsVisible { get; set; }

Gets or sets a value that determines whether this elements should be part of the visual tree or not. This is a bindable property.

public double MinimumHeightRequest { get; set; }

Gets or sets a value which overrides the minimum height the element will request during layout.

public double MinimumWidthRequest { get; set; }

Gets or sets a value which overrides the minimum width the element will request during layout.

public double Opacity { get; set; }

Gets or sets the opacity value applied to the element when it is rendered. This is a bindable property.

public ResourceDictionary Resources { get; set; }

Gets or sets the local resource dictionary.

public double Rotation { get; set; }

Gets or sets the rotation (in degrees) about the Z-axis (affine rotation) when the element is rendered.

public double RotationX { get; set; }

Gets or sets the rotation (in degrees) about the X-axis (perspective rotation) when the element is rendered.

public double RotationY { get; set; }

Gets or sets the rotation (in degrees) about the Y-axis (perspective rotation) when the element is rendered.

public double Scale { get; set; }

Gets or sets the scale factor applied to the element.

public double ScaleX { get; set; }

Gets or sets a scale value to apply to the X direction.

public double ScaleY { get; set; }

Gets or sets a scale value to apply to the Y direction.

public int TabIndex { get; set; }

public double TranslationX { get; set; }

Gets or sets the X translation delta of the element.

public double TranslationY { get; set; }

Gets or sets the Y translation delta of the element.

public IList<TriggerBase> Triggers { get; }

Gets the list of Trigger associated to this element. This is a bindable property.

public IVisual Visual { get; set; }

public double Width { get; }

Gets the current rendered width of this element. This is a read-only bindable property.

public double WidthRequest { get; set; }

Gets or sets the desired width override of this element.

public double X { get; }

Gets the current X position of this element. This is a read-only bindable property.

public double Y { get; }

Gets the current Y position of this element. This is a read-only bindable property.

For internal use by the Xamarin.Forms platform.

Occurs when the Children of a VisualElement have been re-ordered.

For internal use by the Xamarin.Forms platform.

Occurs when the element receives focus.

Event that is raised when the layout of a visual element is invalidated.

Occurs when either the Width or the Height properties change value on this element.

Occurs when the element loses focus.

public void BatchBegin()

Signals the start of a batch of changes to the elements properties.

public void BatchCommit()

Signals the end of a batch of commands to the element and that those commands should now be committed.

public bool Focus()

Attemps to set focus to this element.

public virtual SizeRequest GetSizeRequest(double widthConstraint, double heightConstraint)

Returns the SizeRequest of the element. Calling this method begins the measure pass of a layout cycle.

protected virtual void InvalidateMeasure()

Method that is called to invalidate the layout of this VisualElement. Raises the MeasureInvalidated event.

For internal use by the Xamarin.Forms platform.

public void Layout(Rectangle bounds)

Updates the bounds of the element during the layout cycle.

public SizeRequest Measure(double widthConstraint, double heightConstraint, MeasureFlags flags = 0)

Returns the minimum size that a visual element needs in order to be displayed on the device.

public void NativeSizeChanged()

For internal use by the Xamarin.Forms platform.

protected void OnChildrenReordered()

Invoked whenever the ChildrenReordered event is about to be emitted. Implement this method to add class handling for this event.

protected virtual SizeRequest OnMeasure(double widthConstraint, double heightConstraint)

Method that is called when a layout measurement happens.

protected virtual void OnSizeAllocated(double width, double height)

This method is called when the size of the element is set during a layout cycle. This method is called directly before the SizeChanged event is emitted. Implement this method to add class handling for this event.

protected virtual SizeRequest OnSizeRequest(double widthConstraint, double heightConstraint)

This method is called during the measure pass of a layout cycle to get the desired size of an element.

protected virtual void OnTabIndexPropertyChanged(int oldValue, int newValue)

protected virtual void OnTabStopPropertyChanged(bool oldValue, bool newValue)

protected void SizeAllocated(double width, double height)

SizeAllocated is called during a layout cycle to signal the start of a sub-tree layout.

protected virtual int TabIndexDefaultValueCreator()

protected virtual bool TabStopDefaultValueCreator()

public void Unfocus()

Unsets focus to this element.