Hi,
I'm a little confused here: I was trying to use generic Find.ByAutomationId<T> method that is supposed to return me actually FrameworkElement object for now (the same as non-generic method returns), but it returns me null. Though when I use non-generic sibling (Find.ByAutomationId) it seems to be working fine. Any ideas why it might happen? Cast problems? I was wondering if the method actually returns anything if it can't cast, but well, non-generic works. The element is definitely present in the xaml structure and has correct automation id (as proved by non-generic method once again).
Thank you,
Artem
I'm a little confused here: I was trying to use generic Find.ByAutomationId<T> method that is supposed to return me actually FrameworkElement object for now (the same as non-generic method returns), but it returns me null. Though when I use non-generic sibling (Find.ByAutomationId) it seems to be working fine. Any ideas why it might happen? Cast problems? I was wondering if the method actually returns anything if it can't cast, but well, non-generic works. The element is definitely present in the xaml structure and has correct automation id (as proved by non-generic method once again).
Thank you,
Artem