Using BasedOn property with a Style defined in a different dictionary
The application I'm working on has 2 ResourceDictionary, DefaultStyles.xaml and CustomStyles.xaml. Is it possible that a style in the CustomStyles dictionary uses a base style defined in the other dictionary? DefaultStyles.xaml: <Style x:Key="TextBlockDefaultStyle" TargetType="TextBlock"> <Setter Property="Margin" Value="4" /> </Style> CustomStyles.xaml: <Style x:Key="SectionTitleStyle" TargetType="TextBlock" BasedOn="{StaticResource TextBlockDefaultStyle}"> <Setter Property="FontSize" Value="16" /> </Style> App.xaml: <Application.Resources> <ResourceDictionary> <ResourceDictionary