Synchronized Selectors
- Dominant language
- C#
- Stars
- 23.3k
- Forks
- 2k
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 296
Description
### Description
It would be nice if MAUI supported the Selector.IsSynchronizedWithCurrentItem property like WPF:
https://docs.microsoft.com/en-us/dotnet/api/system.windows.controls.primitives.selector.issynchronizedwithcurrentitem?view=windowsdesktop-6.0
As I'm experimenting with the preview of MAUI, I don't see this as an option on ListViews or CollectionViews.
### Public API Changes
<Setter Property="IsSynchronizedWithCurrentItem" Value="True"/>
### Intended Use-Case
It is often the case where I have a simple list of objects with only one property (e.g. Name) displayed to the user on the left side of the UI. But when the select an item in the list, the remaining space on the right side of the UI is used to display all of the details about the selected item. Generally fields that require a lot of space, e.g. very long text fields. So it is necessary to use controls not in the listbox template.
WPF keeps these synchronized via the IsSynchronizedWithCurrentItem property on the ListBox, so long as they are bound to the same data source.
Contributor guide
Research direction
Start by comparing the ListView and CollectionView selection behavior with WPF's Selector.IsSynchronizedWithCurrentItem API. Verify how controls bound to the same data source should share the current item, and consider the requested style setter as the public API shape. Done means the selected item and bound details view remain synchronized.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100