开发者

WPF List - ListItem Visibility

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).


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?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜