Question

Greetings, I have a FlowDocument where List control is placed. Inside this list I have some ListItem. Is there any way to set some kind of Visibility for specific ListItem? I don't see a coressponding Property like Visibility for ListItem. When I set fontsize="0.1" then application hangs (it goes into infinite loop).

Was it helpful?

Solution

You can set visibility of the ListItem using a binding on the ListItemTemplate, but a better approach would probably be to filter the list that you're binding to. Is there a reason that your list contains items that you don't want to display in the list?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top