diff --git a/Perspex.Controls/ContentControl.cs b/Perspex.Controls/ContentControl.cs index 94670d9b64..428e5292e4 100644 --- a/Perspex.Controls/ContentControl.cs +++ b/Perspex.Controls/ContentControl.cs @@ -65,6 +65,9 @@ namespace Perspex.Controls this.presenterSubscription = null; } + // We allow ContentControls without ContentPresenters in the template. This can be + // useful for e.g. a simple ToggleButton that displays an image. There's no need to + // have a ContentPresenter in the visual tree for that. this.presenter = this.FindTemplateChild("contentPresenter"); if (this.presenter != null)