I'm binding TextBlock.Visiblitiy
to something, and I want to set the Binding.TargetNullValue
to Collapsed
, how can I do it in XAML?
This one How do I set TargetNullValue to a date? does not work in Silverlight. (No x:Static
).
I'm binding TextBlock.Visiblitiy
to something, and I want to set the Binding.TargetNullValue
to Collapsed
, how can I do it in XAML?
This one How do I set TargetNullValue to a date? does not work in Silverlight. (No x:Static
).
This is working for me in SL4:
<TextBlock Text="Text" Visibility="{Binding Foo, TargetNullValue=Collapsed}"/>
Where Foo:
public Visibility? Foo { get; set; }
Collapsed
. What a mistake! It's working. Forget my previous comment. –
Dishonest © 2022 - 2024 — McMap. All rights reserved.