I’m using Visual Studio 11 in Windows8. And setting the data trigger in a Grid Application (Metro) shows me this error in XAML:
the attachable property triggers was not found in style
<Image Stretch="UniformToFill">
<Image.Style>
<Style TargetType="Image">
<Setter Property="Source" Value="{Binding Image}"/>
<Style.Triggers>
<DataTrigger Binding="{Binding Image}" Value="{x:Null}">
<Setter Property="Source" Value="Images/Default.png"/>
</DataTrigger>
</Style.Triggers>
</Style>
</Image.Style>
</Image>
Why show me this?
Triggers aren’t supported in Windows 8 Metro style apps. I’d suggest you write a converter which will replace null value with the default one.