When overridden in a derived class, positions child elements and determines a size for a FrameworkElement derived class.
Assembly: PresentationFramework (in PresentationFramework.dll)
- Type: System.Windows.Size
The final area within the parent that this element should use to arrange itself and its children.
Return ValueType: System.Windows.Size
The actual size used.
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.
The example defines a simple custom Panel element called PlotPanel, which positions child elements according to two hard-coded x- and y-coordinates. In this example, x and y are both set to 50; therefore, all child elements are positioned at that location on the x and y axes.
For the complete sample, see Create a Simple Custom Panel Sample.
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.