-
Notifications
You must be signed in to change notification settings - Fork 107
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: The WMC1510 warning message unexpectedly appears in the control template pulled by generic.xaml #1932
Comments
Well it is correct here, using Binding in such a manner causes the application to fail on startup unless annotated with |
Yes, this is a new warning we added in the xaml compiler in WinAppSDK 1.7 for |
However, this control template comes from WinUI internal TeachingTip, pull the control template when the control template is only fine tuning the style of the control template, so there is no corresponding source code for the control template. I would like to ask you how I can suppress this message or modify the appearance of this warning? |
NoWarn works, but it will still fail as the binding is not safe. It works for WinUI since it is C++. |
Forgot to say, in the error warning prompt said can use |
Yes, you can use
|
I tried to add it and encountered an error during compilation |
I am curious, if you look at the output window after a build rather than the error list, what is the error there? |
Description
The
WMC1510
warning message unexpectedly appears in the control template pulled bygeneric.xaml
--------------------------------------
WMC1510
警告信息意外出现在generic.xaml
拉取的控件模板中Steps To Reproduce
When the
DefaultTeachingTipStyle
(TeachingTip) control template is pulled from thegeneric.xaml
control template, additionalWMC1510
information related to AOT publishing appears when the application is compiled--------------------------------------
从
generic.xaml
控件模板中拉取DefaultTeachingTipStyle
(TeachingTip)控件模板时,应用编译时会出现以外的WMC1510
信息,该信息与 AOT 发布有关Expected Behavior
The
WMC1510
information should not appear in the pulled TeachingTip control template--------------------------------------
WMC1510
信息不应该出现在拉取的 TeachingTip 控件模板中Version Info
CsWinRT 2.2.0
Windows App SDK 1.7-preview1
Visual Studio 17.13
.net 9.0.2
Additional Context
The text was updated successfully, but these errors were encountered: