Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
3166
DefaultStyle for SimpleTextBlock
posted

I am getting an exception 'Resources BasedOn Provide value on 'System.Windows.Markup.StaticResourceHolder' threw an exception.'

I am defining a style for SimpleTextBlock with BasedOn original style.

<Style TargetType="{x:Type controls:SimpleTextBlock}" BasedOn="{StaticResource {x:Type controls:SimpleTextBlock}}">
<Setter Property="TextDecorations" Value="Strikethrough" />
</Style>