Browse Source

Removed ContentPresenter.CreateChild.

Unused API and I'm not sure we want to expose an extension point here.
pull/11477/head
Steven Kirk 3 years ago
parent
commit
4c194b47c2
  1. 11
      src/Avalonia.Controls/Presenters/ContentPresenter.cs

11
src/Avalonia.Controls/Presenters/ContentPresenter.cs

@ -540,17 +540,6 @@ namespace Avalonia.Controls.Presenters
BoxShadow);
}
/// <summary>
/// Creates the child control.
/// </summary>
/// <returns>The child control or null.</returns>
protected virtual Control? CreateChild()
{
var content = Content;
var oldChild = Child;
return CreateChild(content, oldChild, ContentTemplate);
}
private Control? CreateChild(object? content, Control? oldChild, IDataTemplate? template)
{
var newChild = content as Control;

Loading…
Cancel
Save