Skip to main content
.NET Framework Class Library
FrameworkElementArrangeOverride Method

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 Overridable Function ArrangeOverride ( _
	finalSize As [%$TOPIC/ms598098_en-us_VS_110_2_0_0_0_0%] _
) As [%$TOPIC/ms598098_en-us_VS_110_2_0_0_0_1%]
protected virtual [%$TOPIC/ms598098_en-us_VS_110_2_0_1_0_0%] ArrangeOverride(
	[%$TOPIC/ms598098_en-us_VS_110_2_0_1_0_1%] finalSize
virtual [%$TOPIC/ms598098_en-us_VS_110_2_0_2_0_0%] ArrangeOverride(
	[%$TOPIC/ms598098_en-us_VS_110_2_0_2_0_1%] finalSize
abstract ArrangeOverride : 
        finalSize:[%$TOPIC/ms598098_en-us_VS_110_2_0_3_0_0%] -> [%$TOPIC/ms598098_en-us_VS_110_2_0_3_0_1%]  
override ArrangeOverride : 
        finalSize:[%$TOPIC/ms598098_en-us_VS_110_2_0_3_0_2%] -> [%$TOPIC/ms598098_en-us_VS_110_2_0_3_0_3%]
protected function ArrangeOverride(
	finalSize : [%$TOPIC/ms598098_en-us_VS_110_2_0_4_0_0%]
) : [%$TOPIC/ms598098_en-us_VS_110_2_0_4_0_1%]


Type: System.WindowsSize

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

Return Value

Type: System.WindowsSize
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: WindowArrangeOverride, PageArrangeOverride and ControlArrangeOverride.

Version Information

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1