A cross-platform UI framework for .NET
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

36 lines
1.0 KiB

// -----------------------------------------------------------------------
// <copyright file="Panel.cs" company="Steven Kirk">
// Copyright 2014 MIT Licence. See licence.md for more information.
// </copyright>
// -----------------------------------------------------------------------
namespace Perspex.Controls
{
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Collections.Specialized;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
/// <summary>
/// Base class for controls that can contain multiple children.
/// </summary>
public class Panel : Control
{
private LogicalChildren<Control> logicalChildren;
public Panel()
{
this.Children = new ObservableCollection<Control>();
this.logicalChildren = new LogicalChildren<Control>(this, this.Children);
}
public ObservableCollection<Control> Children
{
get;
private set;
}
}
}