I have a Custom control extending Image, and I will put some more data on top of that image. However, when I am trying to style the component, I am getting the error that my Custom Control don't have the property Template. Error:
Cannot find the Style Property 'Template' on the type 'MyCustomImage'
How can I style my custom control if Image doesn't have a Template Property?
Thanks
Edit: Xaml:
<Style TargetType="{x:Type FieldComponents:MyCustomImage}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type FieldComponents:MyCustomImage}">
</ControlTemplate>
</Setter.Value>
</Setter>
</style>