-
Notifications
You must be signed in to change notification settings - Fork 182
[doc bug]: Incorrect template for Window #2016
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
Comments
I'm not sure what to do about this exactly. I think the Blend tool used to generate the templates correctly, it seems Visual Studio is giving basic junk as an output... |
I looked at the source and both VS and Blend use the same code. I can see it is looking for ContentControl and not Window. If you open the aero file that VS uses you can see what it should be. Or open the one that WPF uses. Fact is, if you wanted to create your own Window derivation you should ensure the UI facilitated the behaviour of the base class. For those without more knowledge this documentation would be what you would use. Perhaps what visual studio supplies makes sense in the UI context that you are using but it is certainly not the default Window style and control template. |
I just saw your post here: #1997 (comment) which talks about checking a directory for the XAML. I could check those out. If anything, perhaps I could automate updating these articles too. I'll investigate. BTW, at the bottom of every article here, there's a link to open issues that appends a bunch of metadata. Otherwise, I have to go do that manually and edit your comment to get that data in there π |
Type of issue
Other (describe below)
Description
A continuation of #1997
Now the control template is that of the ContentControl.
Page URL
https://learn.microsoft.com/en-us/dotnet/desktop/wpf/controls/window-styles-and-templates?view=netframeworkdesktop-4.8
Content source URL
https://github.com/dotnet/docs-desktop/blob/main/dotnet-desktop-guide/framework/wpf/controls/window-styles-and-templates.md
Document Version Independent Id
c1f96787-03b0-7740-51fb-9722a9609198
Article author
@adegeo
Metadata
Related Issues
Associated WorkItem - 411079
The text was updated successfully, but these errors were encountered: