Equiv. to Coalesce() in XAML Binding?
问题 In SQL I can do this: Select Coalesce(Property1, Property2, Property3, 'All Null') as Value From MyTable If Property1, 2 and 3 are all null, then I get 'All Null' How do I do this in XAML? I tried the following, but no luck: <Window.Resources> <local:Item x:Key="MyData" Property1="{x:Null}" Property2="{x:Null}" Property3="Hello World" /> </Window.Resources> <TextBlock DataContext="{StaticResource MyData}"> <TextBlock.Text> <PriorityBinding TargetNullValue="All Null"> <Binding Path="Property1"