Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

FrameworkElement.ArrangeOverride Method (Size)

 

When overridden in a derived class, positions child elements and determines a size for a FrameworkElement derived class.

Namespace:   System.Windows
Assembly:  PresentationFramework (in PresentationFramework.dll)

protected virtual Size ArrangeOverride(
	Size finalSize
)

Parameters

finalSize
Type: System.Windows.Size

The final area within the parent that this element should use to arrange itself and its children.

Return Value

Type: System.Windows.Size

The actual size used.

Notes to Inheritors:

Control authors who want to customize the arrange pass of layout processing should override this method. The implementation pattern should call Arrange on each visible child element, and pass the final desired size for each child element as the finalRect parameter. Parent elements should call Arrange on each child, otherwise the child elements will not be rendered.

Many derived classes offer implementations of this method. Prominent ones include: Window.ArrangeOverride, Page.ArrangeOverride and Control.ArrangeOverride.

.NET Framework
Available since 3.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show:
© 2017 Microsoft