|
@@ -13,7 +13,7 @@ namespace Avalonia.Controls
|
|
|
/// <summary>
|
|
|
/// Displays <see cref="Content"/> according to an <see cref="IDataTemplate"/>.
|
|
|
/// </summary>
|
|
|
- [TemplatePart("PART_ContentPresenter", typeof(IContentPresenter))]
|
|
|
+ [TemplatePart("PART_ContentPresenter", typeof(ContentPresenter))]
|
|
|
public class ContentControl : TemplatedControl, IContentControl, IContentPresenterHost
|
|
|
{
|
|
|
/// <summary>
|
|
@@ -68,7 +68,7 @@ namespace Avalonia.Controls
|
|
|
/// <summary>
|
|
|
/// Gets the presenter from the control's template.
|
|
|
/// </summary>
|
|
|
- public IContentPresenter? Presenter
|
|
|
+ public ContentPresenter? Presenter
|
|
|
{
|
|
|
get;
|
|
|
private set;
|
|
@@ -96,16 +96,16 @@ namespace Avalonia.Controls
|
|
|
IAvaloniaList<ILogical> IContentPresenterHost.LogicalChildren => LogicalChildren;
|
|
|
|
|
|
/// <inheritdoc/>
|
|
|
- bool IContentPresenterHost.RegisterContentPresenter(IContentPresenter presenter)
|
|
|
+ bool IContentPresenterHost.RegisterContentPresenter(ContentPresenter presenter)
|
|
|
{
|
|
|
return RegisterContentPresenter(presenter);
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
|
- /// Called when an <see cref="IContentPresenter"/> is registered with the control.
|
|
|
+ /// Called when an <see cref="ContentPresenter"/> is registered with the control.
|
|
|
/// </summary>
|
|
|
/// <param name="presenter">The presenter.</param>
|
|
|
- protected virtual bool RegisterContentPresenter(IContentPresenter presenter)
|
|
|
+ protected virtual bool RegisterContentPresenter(ContentPresenter presenter)
|
|
|
{
|
|
|
if (presenter.Name == "PART_ContentPresenter")
|
|
|
{
|