WPF Style BasedOn Is Not Inheritance

Notice that in the example below the SuperStyle which is based on StartingStyle does not automatically know the TargetType, and is complaining about access to the TextTrimming property. If the TargetType of TextBlock is repeated in the SuperStyle declaration, the error goes away.

XAML Editor

By retrieving the SuperStyle from the window’s resources we find that the TargetType is System.Windows.IFrameworkInputElement

MessageBox of TargetType.FullName

and not System.Windows.Controls.TextBlock. So be sure to indicate the TargetType even when using BasedOn to compose a style.