Replies: 2 comments 5 replies
-
Thanks for the report Guillaume! Glad to see you here ;) Cam you create a repro sample to show the incorrect behavior? |
Beta Was this translation helpful? Give feedback.
-
Hi @jeromelaban , I restarted working on my project recently and updated to the most recent UnoApplicationTemplate (which has Uno version 4.4.20). I noticed this issue is still happening on Android, any idea if this was going to be addressed at some point? I have been trying to use this functionality to make some sort of a "RangeSelector" as I've been calling it that looks like this Using the current index of the list item vs the selected index in the template selector to determine if the item should be "full" or "empty" based on the range I am selecting. If there is no short future in sight for this issue to be resolved, would you be able to provide an alternative |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey team 👋 Guillaume Fortin (ex Nventive employee) here 😄
For context I need to access my
ListView
'sSelectedIndex
from inside aDataTemplateSelector
for some implementation purpose.I learned about the
ItemsControl.ItemsControlFromItemContainer(container)
method and by simply casting(ListView)
to the result, since it inherits fromItemsControl
, I am able to achieve this in UWP.On android,
ItemsControl.ItemsControlFromItemContainer(container)
returns null. Is this a bug on the Uno side? Expected behavior? In all cases, in the meantime is there an alternative to finding myListView
from inside my DataTemplateSelector?Beta Was this translation helpful? Give feedback.
All reactions