System.Windows.Controls Nam ...


.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)
Syntax

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
Remarks

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.

Inheritance Hierarchy

System..::.Object
  System.Windows..::.DependencyObject
    System.Windows..::.UIElement
      System.Windows..::.FrameworkElement
        System.Windows.Controls..::.Panel
          System.Windows.Controls..::.Canvas
          System.Windows.Controls..::.Grid
          System.Windows.Controls.Primitives..::.DataGridCellsPresenter
          System.Windows.Controls.Primitives..::.DataGridColumnHeadersPresenter
          System.Windows.Controls.Primitives..::.DataGridDetailsPresenter
          System.Windows.Controls.Primitives..::.DataGridRowsPresenter
          System.Windows.Controls.Primitives..::.TabPanel
          System.Windows.Controls..::.StackPanel
          System.Windows.Controls..::.VirtualizingPanel
Thread Safety

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

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

See Also

Reference

Other Resources

Tags :


Page view tracker