25 changed files with 228 additions and 283 deletions
@ -1,26 +0,0 @@ |
|||
// -----------------------------------------------------------------------
|
|||
// <copyright file="IItemsPanel.cs" company="Steven Kirk">
|
|||
// Copyright 2014 MIT Licence. See licence.md for more information.
|
|||
// </copyright>
|
|||
// -----------------------------------------------------------------------
|
|||
|
|||
namespace Perspex.Controls |
|||
{ |
|||
/// <summary>
|
|||
/// Interface used by <see cref="ItemsControl"/> to set logical ownership of the panel's
|
|||
/// children.
|
|||
/// </summary>
|
|||
/// <remarks>
|
|||
/// <see cref="ItemsControl"/> needs to set the logical parent of each of its items to itself.
|
|||
/// To do this, it uses this interface to instruct the panel that instead of setting the
|
|||
/// logical parent for each child to the panel itself, it should set it to that of
|
|||
/// <see cref="ChildLogicalParent"/>.
|
|||
/// </remarks>
|
|||
public interface IItemsPanel |
|||
{ |
|||
/// <summary>
|
|||
/// Gets or sets the logical parent that should be set on children of the panel.
|
|||
/// </summary>
|
|||
ILogical ChildLogicalParent { get; set; } |
|||
} |
|||
} |
|||
@ -0,0 +1,28 @@ |
|||
// -----------------------------------------------------------------------
|
|||
// <copyright file="IReparentingControl.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 make its visual children the logical children of another control.
|
|||
/// </summary>
|
|||
public interface IReparentingControl : IControl |
|||
{ |
|||
/// <summary>
|
|||
/// Requests that the visual children of the control use another control as their logical
|
|||
/// parent.
|
|||
/// </summary>
|
|||
/// <param name="logicalParent">
|
|||
/// The logical parent for the visual children of the control.
|
|||
/// </param>
|
|||
/// <param name="children">
|
|||
/// The <see cref="ILogical.LogicalChildren"/> collection to modify.
|
|||
/// </param>
|
|||
void ReparentLogicalChildren(ILogical logicalParent, IPerspexList<ILogical> children); |
|||
} |
|||
} |
|||
Loading…
Reference in new issue