Open thexamlguy opened 1 year ago
Sorry, I'm not sure what you're asking for. Could you try to reword it?
Sorry, I'm not sure what you're asking for. Could you try to reword it?
Sorry!
At the moment, if one was to consume a SelectingItemsControl directly, nothing is displayed. Maybe we could go about adding a default ControlTheme for SelectingItemsControl for both Fluent and Simple theme? Developers can then consume the SelectingItemsControl without requiring to manually add the SelectingItemsControl ControlTheme theme resources themselves, similar to how ItemsControl work out of the box.
Happy to contribute to this one if accepted.
ItemsControl is usable on its own. I think SelectingItemsControl should be as well. For me it makes sense to add default control themes for this.
There are two problems with this:
SelectingItemsControl
doesn't specify an item container type, so how would selected items be marked as selected? For example if one's ItemsSource
contains a list of strings then the created containers would be ContentPresenter
s. How would a ContentPresenter
visually indicate that it's selected?SelectingItemsControl
provides no user interaction handling, so even if you got selection displaying, the user wouldn't be able to interact with the control.I fear by making this control have a visual representation but one which doesn't actually indicate selection, we'd be confusing things even more. It would probably make more sense to make the control abstract IMO.
There are two problems with this:
SelectingItemsControl
doesn't specify an item container type, so how would selected items be marked as selected? For example if one'sItemsSource
contains a list of strings then the created containers would beContentPresenter
s. How would aContentPresenter
visually indicate that it's selected?SelectingItemsControl
provides no user interaction handling, so even if you got selection displaying, the user wouldn't be able to interact with the control.I fear by making this control have a visual representation but one which doesn't actually indicate selection, we'd be confusing things even more. It would probably make more sense to make the control abstract IMO.
I use a lot the SelectingItemsControl and each time I have to do custom template based on ItemsControl
. It is really useful control please don't make it abstract. It serves great use case between ItemsControl
and ListBox
Interesting. How do you deal with the SelectingItemsControl
not having a container type @wieslawsoltes ?
Interesting. How do you deal with the
SelectingItemsControl
not having a container type @wieslawsoltes ?
This is one if my usages:
Should work as similar to using a ItemsControl for displaying data, albeit if you want a barebone minimal control without any of the selection visual found in the ListBox control but still have the ability to control your own visual when an item is selected.
Example scenario:
I've had to manually added a control style copied from ItemsControl.