Data trigger

Hello i have problem with Data trigger

<Image HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand" Source="{Binding MyObject.Picture}" Aspect="AspectFill"> <Image.Triggers> <DataTrigger TargetType="Image" Binding="{Binding MyObject}" Value="{x:Null}"> <Setter Property="Source" Value="DefaultEventPicture.jpg"/> </DataTrigger> </Image.Triggers> </Image>

Trigger doesn't work. ( MyObject is null )
Image contains in ListView

Tagged:
Sign In or Register to comment.