KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have a list of objects contained in an IEnumerable<>. I would like to set the visibility of a control based on the count of this list. I have tried: Visibility="{Binding MyList.Count>0?Collapsed:Visible, Mode=OneWay}" But this doesn't work. I tried binding MyList.Count to the text in a text block to ensure that the count value was correct, and it is. It just doesn't seem to set the visibility correctly.
Tags (comma-separated)
Save Edits
Cancel