I have a DataTemplate in app.xaml that binds a view to a viewmodel.
<Application.Resources>
<DataTemplate DataType="{x:Type vm:someviewmodeltype}">
<vw:somevwcontrol />
</DataTemplate>
</Application.Resources>
the above template doesn't get applied if there are no styles. The moment I put a style, something like ...
<Application.Resources>
<DataTemplate DataType="{x:Type vm:someviewmodeltype}">
<vw:somevwcontrol />
</DataTemplate>
<Style TargetType="TextBlock">
<Setter Property="FontSize" Value="20"></Setter>
</Style>
</Application.Resources>
datatemplate gets picked up and produces the desired results ... I am not sure whats happening there ... could anybody clarify this ?
Thanks.