Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
UIElementCollection.cs
Go to the documentation of this file.
1 // Copyright (c) 2014 Silicon Studio Corp. (http://siliconstudio.co.jp)
2 // This file is distributed under GPL v3. See LICENSE.md for details.
3 using System.Collections.Generic;
4 
5 using SiliconStudio.Core.Collections;
6 
7 namespace SiliconStudio.Paradox.UI
8 {
9  /// <summary>
10  /// A collection of UIElements.
11  /// </summary>
12  public class UIElementCollection : TrackingCollection<UIElement>
13  {
14  /// <summary>
15  /// Gets the underlying list if not possible.
16  /// Returns null if the underlying collection is not a list.
17  /// </summary>
18  public List<UIElement> UnderlyingList
19  {
20  get { return Items is List<UIElement>? (List<UIElement>)Items: null; }
21  }
22  }
23 }