DataTrigger Usage
问题 Here is pseudo code for what I want to implement in xaml IF vm.AvatarFilePath IS NOT NULL THEN Image.Source = {Binding AvatarPath} ELSE If vm.Gender == {x:Static vm:Gender.Female} THEN Image.Source = {StaticResource Img_Female} ELSE Image.Source = {StaticResource Img_Male} ENDIF ENDIF and below is an implementation attempt with at least the following issues: how does it know the AvatarPath was null and that we care about Gender? is there a way to do ELSE, so I can specify the Gender.Male