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.
 
 
 

31 lines
1.1 KiB

// -----------------------------------------------------------------------
// <copyright file="IReparentingHost.cs" company="Steven Kirk">
// Copyright 2015 MIT Licence. See licence.md for more information.
// </copyright>
// -----------------------------------------------------------------------
namespace Perspex.Controls
{
using Perspex.Collections;
/// <summary>
/// A control that can use the visual children of another control as its logical children.
/// </summary>
public interface IReparentingHost : ILogical
{
/// <summary>
/// Gets a writeable logical children collection from the host.
/// </summary>
new IPerspexList<ILogical> LogicalChildren { get; }
/// <summary>
/// Asks the control whether it wants to reparent the logical children of the specified
/// control.
/// </summary>
/// <param name="control">The control.</param>
/// <returns>
/// True if the control wants to reparent its logical children otherwise false.
/// </returns>
bool WillReparentChildrenOf(IControl control);
}
}