`BreadcrumbBar` `MoveFocus` method should not use parameterless `GetFocusedElement`
Describe the bug
The code currently uses GetFocusedElement without XamlRoot parameter, which always returns null in WinUI
Steps to reproduce the bug
See the BreadcrumbBar.cpp
Expected behavior
GetFocusedElement(XamlRoot) should be used
Screenshots
No response
NuGet package version
None
Windows version
No response
Additional context
No response
@MartinZikmund thanks for pointing it out and creating an issue, have you seen any unexpected behavior ~ a crash or UI glitch with BreadcrumbBar due to incorrect usage of GetFocusedElement?
@Hemantxk not necessarily, just the current behavior essentially means that the whole branch is "dead" code, which will never be executed; so if the code was there for a specific use case, it will not work correctly. I noticed this issue when porting the control to Uno Platform where I adjusted it to use the XamlRoot:
Looks like it closed mistakenly. Reopening.