Share via


IView Interface

Definition

Represents a visual element that is used to place layouts and controls on the screen.

public interface class IView : Microsoft::Maui::IElement, Microsoft::Maui::ITransform
public interface IView : Microsoft.Maui.IElement, Microsoft.Maui.ITransform
type IView = interface
    interface IElement
    interface ITransform
Public Interface IView
Implements IElement, ITransform
Derived
Implements

Properties

AnchorX

Gets the X component of the center point for any transform, relative to the bounds of the element.

(Inherited from ITransform)
AnchorY

Gets the Y component of the center point for any transform, relative to the bounds of the element.

(Inherited from ITransform)
AutomationId

Id used by automation tools to interact with this View

Background

Gets the paint which will fill the background of a View.

Clip

Gets the Path used to define the outline of the contents of a View.

DesiredSize

Gets the current desired Size of this View.

FlowDirection

Direction in which the UI elements are scanned by the eye

Frame

Gets the bounds of the View within its container.

Handler

Gets or sets the View Handler of the View.

Height

Gets the specified height of the IView.

HorizontalLayoutAlignment

Determines the horizontal aspect of this element's arrangement in a container

InputTransparent

Gets a value indicating whether this element should be involved in the user interaction cycle.

IsEnabled

Gets a value indicating whether this View is enabled in the user interface.

IsFocused

Gets a value indicating whether this View is focused currently.

Margin

The Margin represents the distance between an view and its adjacent views.

MaximumHeight

Gets the specified maximum height constraint of the IView, between zero and double.PositiveInfinity.

MaximumWidth

Gets the specified maximum width constraint of the IView, between zero and double.PositiveInfinity.

MinimumHeight

Gets the specified minimum height constraint of the IView, between zero and double.PositiveInfinity.

MinimumWidth

Gets the specified minimum width constraint of the IView, between zero and double.PositiveInfinity.

Opacity

Gets the opacity value applied to the view when it is rendered.

Parent

Gets the Parent of the Element.

(Inherited from IElement)
Rotation

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

(Inherited from ITransform)
RotationX

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

(Inherited from ITransform)
RotationY

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

(Inherited from ITransform)
Scale

Gets the scale factor applied to the element.

(Inherited from ITransform)
ScaleX

Gets the scale about the X-axis factor applied to the element.

(Inherited from ITransform)
ScaleY

Gets the scale about the Y-axis factor applied to the element.

(Inherited from ITransform)
Semantics

Adds semantics to every View for accessibility

Shadow

Paints a shadow around the target View.

TranslationX

Gets the X translation delta of the element.

(Inherited from ITransform)
TranslationY

Gets the Y translation delta of the element.

(Inherited from ITransform)
VerticalLayoutAlignment

Determines the vertical aspect of this element's arrangement in a container

Visibility

Gets a value that determines whether this View should be part of the visual tree or not.

Width

Gets the specified width of the IView.

ZIndex

Determines the drawing order of this IView within an ILayout; higher z-indexes will draw over lower z-indexes.

Methods

Arrange(Rect)

Positions child elements and determines a size for an Element.

Focus()

Attempts to set focus to this View.

InvalidateArrange()

Method that is called to invalidate the layout of this View.

InvalidateMeasure()

Signals that the current measure value of this View is no longer valid and must be recomputed during the next measure pass.

Measure(Double, Double)

Updates the size of an View.

Unfocus()

Unsets focus to this View.

Extension Methods

CheckHandlers(IView)
ComputeDesiredSize(IView, Double, Double)
ComputeFrame(IView, Rect)
ToHandler(IElement, IMauiContext)
ToPlatform(IElement, IMauiContext)
ToHandler(IView, IMauiContext)
SetSemanticFocus(IView)
CaptureAsync(IView)
DisconnectHandlers(IView)

Applies to