c# - Is there any reason why ItemsControl shouldn't be used directly? -
i've seen scenario hundred times:
the developer needs display items. no functionality (scrolling, selection etc.) required, display bunch of stuff. solution? use listbox, write loads of xaml remove of appearance , behaviour (often forgetting something, leading strange bugs).
my question is: why not use itemscontrol, that, take items list , put them on window (put, default, stackpanel, although can changed)? there concerns don't know about? there reason why using itemscontrol directly not idea, or matter of people not knowing can that?
my guess listbox features more regularly in tutorials easier find in visual studio , blend.
you correct itemscontrol. list box extends control support selection of items, unless need able select something, use itemscontrol. should same principle adopted throughout, use lower level control meet requirement.
incidentally, i've never encountered issues itemscontrol.
Comments
Post a Comment