Firstly, try write Style
tag like this: <Style ... />
. Secondly, you must add TargetType
or the Key
for your Style, because ResourcesDictionary
it is a Dictionary and there is can not be elements without the key. The Key in this case it's a hash, what needed for not ordered Dictionary.
Example:
<Application.Resources>
<Style TargetType="{x:Type FrameworkElement}">
</Style>
</Application.Resources>
For more information, see this: