A set of custom controls for the WinUI and the Uno Platform not offered out of the box by WinUI, such as Card, TabBar, NavigationBar, etc.
82
stars
27
forks
source link
[ItemsRepeaterExtensions.SelectedItem] Only works if it's put below the Itemsource #918
Open
Marc-Antoine-Soucy opened 11 months ago
Current behavior
<muxc:ItemsRepeater utu:ItemsRepeaterExtensions.SelectedItem="{Binding Test, Mode=TwoWay}" utu:ItemsRepeaterExtensions.SelectionMode="SingleOrNone" ItemsSource="{Binding Tests}">
The selected item will not be set if it's put like this.
Expected behavior
It should be documented that it only works if you set the itemssource first or it should work in any order
How to reproduce it (as minimally and precisely as possible)
Nuget Package:
Package Version(s):
Affected platform(s): It happens on every platform I tested
IDE:
Relevant plugins:
Anything else we need to know?
This happens because the collection is still empty when the extensions tries to set the selected item.