-
Notifications
You must be signed in to change notification settings - Fork 676
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TemplateBinding and TemplatedParent Binding return different values (UnsetValue vs null) on failure to resolve #1048
Comments
They should be behaviorally equivalent, with the Binding to TemplateParent enabling more complex paths and converters. But I wouldn't have expected TemplateBinding to crash. What is the call stack and error message you see? (you would need to enable native debugging and break on first chance WinRT originate error). |
@HppZ if you could provide a repro project that would be ideal as it would ensure that we are investigating the right thing. |
Thanks for the repro! So it seems like your template binding (whether as Having said that, starting with the 1903 release VSM Setters should be permitting |
since it is a bug, please fix it, thanks! |
Changed title, we'll be considering this issue in the future (bug, not a question anymore). Thanks for reporting and providing the sample code HppZ! |
@StephenLPeters Should this be marked as WinUI 3 since this is currently part of OS XAML? |
I think it should actually just be closed, Winui 3 wont have OS version specific code and from the comments it looks like this was fixed in 1903 so it should already be fixed in Winui 3. @alwu-msft can you confirm and close? |
This issue should be fixed as of the latest Windows App SDK 0.8 release, so I'm closing this. Let me know if it still persists and we can re-open. |
using TemplateBinding in VisualState.Setters will make app crash while using TemplatedParent won't.
The text was updated successfully, but these errors were encountered: