/// <param name="tabButton">A tab button to be added to TabBar.</param>
/// <exception cref="ArgumentNullException">Thrown when the argument tabButton is null.</exception>
[EditorBrowsable(EditorBrowsableState.Never)]
- protected internal void AddTabButton(TabButton tabButton)
+ protected internal virtual void AddTabButton(TabButton tabButton)
{
if (tabButton == null)
{
/// <exception cref="ArgumentNullException">Thrown when the argument tabButton is null.</exception>
/// <exception cref="ArgumentException">Thrown when the argument tabButton does not exist in TabBar.</exception>
[EditorBrowsable(EditorBrowsableState.Never)]
- protected internal void RemoveTabButton(TabButton tabButton)
+ protected internal virtual void RemoveTabButton(TabButton tabButton)
{
if (tabButton == null)
{
{
return tabBar;
}
+
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ protected set
+ {
+ if (tabBar != null)
+ {
+ tabBar.TabButtonSelected -= tabButtonSelectedHandler;
+ Utility.Dispose(tabBar);
+ }
+
+ tabBar = value;
+ Add(tabBar);
+ }
}
/// <summary>
{
return content;
}
+
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ protected set
+ {
+ if (content != null)
+ {
+ Utility.Dispose(content);
+ }
+
+ content = value;
+ Add(content);
+ }
}
/// <summary>