-
Notifications
You must be signed in to change notification settings - Fork 247
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
Bug:Since 2.0.240111.5, I get a compile error with the GetTemplateChild function. #1393
Comments
GetTemplateChild has always been a protected method in WinRT metadata so this is an intentional result of this change. It was never meant to be public. You can quickly workaround this issue by doing |
I wrote the above code, but the return value is NULL. Is this wrong? |
The problem has been resolved successfully. |
See microsoft/cppwinrt#1393 We need to first convert the WinUI 3 control to IControlProtected to access GetTemplateChild.
* Support WinAppSDK + cppwinrt 2.240111.5 See microsoft/cppwinrt#1393 We need to first convert the WinUI 3 control to IControlProtected to access GetTemplateChild. * Change files * Apply C++/WinRT fix to both UWP and WinAppSDK
Version
2.0.240111.5
Summary
I think GetTemplateChild was a public function, but since 2.0.240111.5 it has been changed to protected, so I cannot access it from outside the class.
Is there a workaround for this?
Reproducible example
Expected behavior
No response
Actual behavior
No response
Additional comments
No response
The text was updated successfully, but these errors were encountered: