Hi all,
I have a label like this:
<Label Name="LblUsersWithHair">
<Binding Path="Users"
ElementName="ElementSelf"
Converter="{StaticResource Converter_UsersWithHairPresenter}" />
</Label>
And the converter:
...
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
{
var users = value as ObservableCollection<Users>;
if (users == null) return null;
var usersWithHair = users.Count(user => user.HasHair == true);
return "There are " + usersWithHair + " there has hair.";
}
...
The problem is now that the label of course isn't updated when the 'HasHair' property is changed, since the collection isn't changed. But how do I force the label to rebind, when this property is set?
The example above is very simplified, but hope that you can help me... :o)