Click to Rate and Give Feedback
MSDN
MSDN Library
Web Development
Silverlight 3
Panel Class

  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
Panel Class

Provides a base class for all Panel elements. Use Panel elements to position and arrange child objects in Silverlight-based applications.

Namespace:  System.Windows.Controls
Assembly:  System.Windows (in System.Windows.dll)
Visual Basic (Declaration)
<ContentPropertyAttribute("Children", True)> _
Public MustInherit Class Panel _
    Inherits FrameworkElement
Visual Basic (Usage)
Dim instance As Panel
C#
[ContentPropertyAttribute("Children", true)]
public abstract class Panel : FrameworkElement

To allow for complex layouts, Silverlight currently implements panel elements such as Canvas, StackPanel, and Grid. For more information about using panels, see Silverlight Layout System.

For scenarios that require application layout that is not possible using any of the predefined Panel elements, custom layout behaviors can be achieved by inheriting from Panel and overriding the default measure and arrange behavior by using the MeasureOverride and ArrangeOverride methods.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

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