C#C
C#3y ago
SirDigby

❔ WinUI: Find element within data template item

I have a FlipView with bound data and a data template. I'm trying to get a reference to a named element for the selected item, but can't find anything that works with WinUI.

I found this which shows how to do it with WPF via DataTemplate.FindName, but that isn't an option in WinUI https://learn.microsoft.com/en-us/dotnet/desktop/wpf/data/how-to-find-datatemplate-generated-elements?view=netframeworkdesktop-4.8

For context, I'm trying to modify the WinUI 3 Gallery's 'Connected Animation' example to work going from a ListView to a FlipView
Was this page helpful?