Xamarin.Forms.VisualElement: Method Members

The methods of Xamarin.Forms.VisualElement are listed below. For a list of all members, see the VisualElement Members list.

See Also: Inherited members from Xamarin.Forms.Element

Public Methods

BatchBegin()
Signals the start of a batch of changes to the elements properties.
BatchCommit()
Signals the end of a batch of commands to the element and that those commands should now be committed.
Focus() : bool
Attemps to set focus to this element.
GetSizeRequest(double, double) : SizeRequest
Returns the Xamarin.Forms.SizeRequest of the element. Calling this method begins the measure pass of a layout cycle.
Layout(Rectangle)
Updates the bounds of the element during the layout cycle.
Unfocus()
Unsets focus to this element.

Protected Methods

InvalidateMeasure()
Method that is called to invalidate the layout of this Xamarin.Forms.VisualElement. Raises the VisualElement.MeasureInvalidated event.
OnChildrenReordered()
Invoked whenever the VisualElement.ChildrenReordered event is about to be emitted. Implement this method to add class handling for this event.
override
OnParentSet()
Invoked whenever the Parent of an element is set. Implement this method in order to add behavior when the element is added to a parent.
OnSizeAllocated(double, double)
This method is called when the size of the element is set during a layout cycle. This method is called directly before the VisualElement.SizeChanged event is emitted. Implement this method to add class handling for this event.
OnSizeRequest(double, double) : SizeRequest
This method is called during the measure pass of a layout cycle to get the desired size of an element.
SizeAllocated(double, double)
SizeAllocated is called during a layout cycle to signal the start of a sub-tree layout.