WPF Some styles not applied on DataTemplate controls
I am trying to learn something about WPF and I am quite amazed by its flexibility. However, I have hit a problem with Style s and DataTemplate s, which is little bit confusing. I have defined below test page to play around a bit with styles etc and found that the Style s defined in <Page.Resources> for Border and TextBlock are not applied in the DataTemplate , but Style for ProgressBar defined in exactly the same way is applied. Source code (I just use Kaxaml and XamlPadX to view the result) <Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas