Class Panel
Provides a base class for all Panel elements. Use Panel elements to position and arrange child objects in a UI page.
Inheritance
System.Object
Panel
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: System.Windows.Controls
Assembly: OpenSilver.dll
Syntax
public abstract class Panel : FrameworkElement
Fields
| Improve this Doc View SourceBackgroundProperty
Identifies the Background dependency property.
Declaration
public static readonly DependencyProperty BackgroundProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
IsItemsHostProperty
Identifies the IsItemsHost dependency property.
Declaration
public static readonly DependencyProperty IsItemsHostProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
| Improve this Doc View SourceBackground
Gets or sets a Brush that is used to fill the panel.
Declaration
public Brush Background { get; set; }
Property Value
Type | Description |
---|---|
Brush |
Children
Gets the collection of child elements of the panel.
Declaration
public UIElementCollection Children { get; }
Property Value
Type | Description |
---|---|
UIElementCollection |
EnableProgressiveRendering
Declaration
public bool EnableProgressiveRendering { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsItemsHost
Gets a value that indicates whether this Panel is a container for UI items that are generated by an ItemsControl.
Declaration
public bool IsItemsHost { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc View SourceCreateUIElementCollection(FrameworkElement)
Declaration
protected virtual UIElementCollection CreateUIElementCollection(FrameworkElement logicalParent)
Parameters
Type | Name | Description |
---|---|---|
FrameworkElement | logicalParent |
Returns
Type | Description |
---|---|
UIElementCollection |
GetTemplateChild(String)
Retrieves the named element in the instantiated ControlTemplate visual tree.
Declaration
protected DependencyObject GetTemplateChild(string childName)
Parameters
Type | Name | Description |
---|---|---|
System.String | childName | The name of the element to find. |
Returns
Type | Description |
---|---|
DependencyObject | The named element from the template, if the element is found. Can return null if no element with name childName was found in the template. |
INTERNAL_OnAttachedToVisualTree()
Declaration
protected override void INTERNAL_OnAttachedToVisualTree()
Overrides
| Improve this Doc View SourceINTERNAL_OnChildProgressivelyLoaded()
Declaration
protected virtual void INTERNAL_OnChildProgressivelyLoaded()