A ContentTemplate:
<ControlTemplate TargetType="{x:Type XXX}"><Border /></ControlTemplate>
ControlTemplate inherit FrameworkTemplate
A part of code of FrameworkTemplate:
[ContentProperty("VisualTree")] public class FrameworkTemplate { public FrameworkElementFactory VisualTree { get; set; } }
The VisaulTree property is FrameworkElementFactory.
But in the xaml file, it is a FrameworkElement in ContentTemplate.
How does it work? I want to create a similar class.
QQ247695480