16 changed files with 30 additions and 86 deletions
@ -1,23 +0,0 @@ |
|||||
using Avalonia.Controls.Primitives; |
|
||||
using Avalonia.Metadata; |
|
||||
|
|
||||
namespace Avalonia.Controls.Presenters |
|
||||
{ |
|
||||
/// <summary>
|
|
||||
/// Interface for controls that present a single item of data inside a
|
|
||||
/// <see cref="TemplatedControl"/> template.
|
|
||||
/// </summary>
|
|
||||
[NotClientImplementable] |
|
||||
public interface IContentPresenter : IPresenter |
|
||||
{ |
|
||||
/// <summary>
|
|
||||
/// Gets the control displayed by the presenter.
|
|
||||
/// </summary>
|
|
||||
Control? Child { get; } |
|
||||
|
|
||||
/// <summary>
|
|
||||
/// Gets or sets the content to be displayed by the presenter.
|
|
||||
/// </summary>
|
|
||||
object? Content { get; set; } |
|
||||
} |
|
||||
} |
|
||||
@ -1,20 +0,0 @@ |
|||||
using Avalonia.Controls.Primitives; |
|
||||
using Avalonia.Metadata; |
|
||||
|
|
||||
namespace Avalonia.Controls.Presenters |
|
||||
{ |
|
||||
/// <summary>
|
|
||||
/// Interface for presenters such as <see cref="ContentPresenter"/> and
|
|
||||
/// <see cref="ItemsPresenter"/>.
|
|
||||
/// </summary>
|
|
||||
/// <remarks>
|
|
||||
/// A presenter is the gateway between a templated control and its content. When
|
|
||||
/// a control which implements <see cref="IPresenter"/> is found in the template
|
|
||||
/// of a <see cref="TemplatedControl"/> then that signals that the visual child
|
|
||||
/// of the presenter is not a part of the template.
|
|
||||
/// </remarks>
|
|
||||
[NotClientImplementable] |
|
||||
public interface IPresenter : INamed |
|
||||
{ |
|
||||
} |
|
||||
} |
|
||||
@ -1,13 +0,0 @@ |
|||||
using System; |
|
||||
using Avalonia.Controls.Presenters; |
|
||||
using Avalonia.Controls.Primitives; |
|
||||
using Avalonia.Layout; |
|
||||
using Avalonia.Styling; |
|
||||
|
|
||||
namespace Avalonia.UnitTests |
|
||||
{ |
|
||||
public static class TestExtensions |
|
||||
{ |
|
||||
public static void ApplyTemplate(this IContentPresenter presenter) => ((Layoutable)presenter).ApplyTemplate(); |
|
||||
} |
|
||||
} |
|
||||
Loading…
Reference in new issue