Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
Silverlight
Silverlight 2
 ArrangeOverride Method

  Switch on low bandwidth view
This page is specific to
Microsoft Silverlight 3

Other versions are also available for the following:
.NET Framework Class Library for Silverlight
FrameworkElement..::.ArrangeOverride Method

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
)

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 (or panel 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.

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker