targetnullvalue Questions

2

Solved

I have a wpf textblock as below: <TextBlock Text="{Binding [someViewModel].SomeVar.SomeSubVar.Name, TargetNullValue='-'}"/> At my viewmodel side, I'll have my own logic that in the end, ...
Meave asked 11/3, 2014 at 3:10

3

Solved

I have the following DataTemplate in a Listbox <ListBox Grid.Column="1" Grid.Row="2" ItemsSource="{Binding People}" SelectedItem="{Binding SelectedPerson}"> <ListBox.ItemTemplate> &lt...
Crosshead asked 7/1, 2009 at 21:2

1

Solved

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 i...
Dishonest asked 1/1, 2012 at 11:24

3

Solved

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 t...
Rehearsal asked 4/8, 2011 at 19:51

4

Solved

How to hide a stringformat when data is not present.Consider this sample <TextBlock Text="{Binding Amount, StringFormat=Total: {0:C}}" /> in this case if Amount is null,Then it will show j...
Terrazas asked 15/9, 2010 at 18:14

1

Solved

I'm using the WPF toolkit's Calendar control to allow users to select a date. If the date is not yet selected then the property the SelectedDate is bound to is Null. This makes the Calendar default...
Queer asked 5/2, 2009 at 17:56
1

© 2022 - 2024 — McMap. All rights reserved.