Open Marv51 opened 3 years ago
Hello Marv51, thank you for opening an issue with us!
I have automatically added a "needs triage" label to help get things started. Our team will analyze and investigate the issue, and escalate it to the relevant team if possible. Other community members may also look into the issue and provide feedback 🙌
Thanks for looking into this @Marv51! Do you want to fix this issue and create a PR?
@azchohfi this works from our UWP Sample App in the store, can you test from the WinUI 3 version? Wondering if this is exposing a timing issue or something in WinUI 3 vs. UWP? Or maybe we missed something we needed to change?
I guess worst case we just add a guard around this code (which we probably should do anyway?):
@Kyaa-dost I think somebody with a already set up dev-environment can add those null checks in a couple minutes. So I prefer if somebody else could do this?
@Kyaa-dost I think somebody with a already set up dev-environment can add those null checks in a couple minutes. So I prefer if somebody else could do this?
@Marv51 Yes that would be another alternative. Thanks for checking!
FocusTracker crashes with NullReferenceException if the
IsActive="True"
property is set in XAML.I'm on WinUI 3.0 (desktop, Reunion 0.5.6) with Community Toolkit 7.0.1
Stacktrace points to ClearContent.
I think this is occurring because the property is set before the template is finished applying. If I set
IsActive=true
at a later point, for example from a button click event it works as intended.For me this issue reproduces easily and reliably, let me know if more info is needed.
Full Exception:
XAML: