How can i use a data trigger to change matadata values to my own text string or image?
for example if PEGI 18 exists show 18? or even an image?
tried this as a guess but just crashes.
for example if PEGI 18 exists show 18? or even an image?
tried this as a guess but just crashes.
<ControlTemplate.Triggers>
<DataTrigger Binding="{Binding SelectedGame.AgeRatings[0].Name}" Value="PEGI 18">
<Setter Property="Text" Value="18" TargetName="AgeRatings" />
</DataTrigger>
</ControlTemplate.Triggers>