Printer Friendly Version      Send     
Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
Silverlight
 ArrangeOverride Method
Other versions are also available for the following:
.NET Framework Class Library for Silverlight
FrameworkElement..::.ArrangeOverride Method
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Provides the behavior for the "Arrange" pass of Silverlight layout. Classes can override this method to define their own arrange pass behavior.

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

Visual Basic (Declaration)
Protected Overridable Function ArrangeOverride ( _
    finalSize As Size _
) As Size
Visual Basic (Usage)
Dim finalSize As Size
Dim returnValue As Size

returnValue = Me.ArrangeOverride(finalSize)
C#
protected virtual Size ArrangeOverride(
    Size finalSize
)
Visual C++
protected:
virtual Size ArrangeOverride(
    Size finalSize
)
JScript
protected function ArrangeOverride(
    finalSize : Size
) : Size

Parameters

finalSize
Type: System.Windows..::.Size

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

Return Value

Type: System.Windows..::.Size

The actual size used.

This method has a default implementation that performs built-in layout for most Silverlight FrameworkElement classes.

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 object, and pass the final desired size for each child object as the finalRect parameter. Parents should call Arrange on each child, otherwise the child object will not be rendered.

Several existing Silverlight classes provide override implementations of this method. Prominent ones include: TextBox..::.ArrangeOverride, StackPanel..::.ArrangeOverride, Grid..::.ArrangeOverride.

© 2008 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker