When a control template is applied to BreadcrumbBarItem using style WinUI cannot initialize it failing on finding deferred element by name, while it works fine if control template inlined or set using static resource.
Steps to reproduce the bug
Use reproduction project BreadcrumbTemplateRepro.zip
Notice that if you extract the template and put it inline, project will run without any issues
Expected behavior
Template initialization works consistently in all cases: inline, static resource, within a style
Describe the bug
When a control template is applied to
BreadcrumbBarItem
using style WinUI cannot initialize it failing on finding deferred element by name, while it works fine if control template inlined or set using static resource.Steps to reproduce the bug
Use reproduction project BreadcrumbTemplateRepro.zip Notice that if you extract the template and put it inline, project will run without any issues
Expected behavior
Template initialization works consistently in all cases: inline, static resource, within a style
Screenshots
No response
NuGet package version
WinUI 3 - Windows App SDK 1.6.1: 1.6.240923002
Windows version
Windows 11 (22H2): Build 22621
Additional context
No response