Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[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

Open
tonyhallett opened this issue Feb 28, 2025 · 3 comments
Open

[doc bug]: Incorrect template for Window #2016

tonyhallett opened this issue Feb 28, 2025 · 3 comments
Assignees
Labels
doc-bug Problem with the content; needs to be fixed [org][type][category] dotnet-framework/svc okr-quality Pri1 High priority, do before Pri2 and Pri3 πŸ“Œ seQUESTered Label to indicate an item has been imported. wpf/subsvc

Comments

@tonyhallett
Copy link

tonyhallett commented Feb 28, 2025

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

  • ID: 844e0881-ff9c-8374-6080-3c24ae15cb48
  • PlatformId: a1ff43a1-38ee-b033-e511-b6ab14530333
  • Service: dotnet-framework
  • Sub-service: wpf

Related Issues


Associated WorkItem - 411079

@tonyhallett tonyhallett added doc-bug Problem with the content; needs to be fixed [org][type][category] Pri1 High priority, do before Pri2 and Pri3 labels Feb 28, 2025
@adegeo
Copy link
Contributor

adegeo commented Feb 28, 2025

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...

@adegeo adegeo removed the ⌚ Not Triaged Not triaged label Feb 28, 2025
@tonyhallett
Copy link
Author

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.

@adegeo
Copy link
Contributor

adegeo commented Feb 28, 2025

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 😁

@dotnetrepoman dotnetrepoman bot added the πŸ—ΊοΈ mapQUEST Only used as a way to mark an issue as updated. RepoMan should instantly remove it. label Mar 5, 2025
@adegeo adegeo added πŸ—ΊοΈ reQUEST Trigger label to import an issue into Quest and removed πŸ—ΊοΈ mapQUEST Only used as a way to mark an issue as updated. RepoMan should instantly remove it. labels Mar 5, 2025
@sequestor sequestor bot added πŸ“Œ seQUESTered Label to indicate an item has been imported. and removed πŸ—ΊοΈ reQUEST Trigger label to import an issue into Quest labels Mar 26, 2025
@adegeo adegeo moved this from πŸ”– Ready to Slipped in dotnet/docs March 2025 sprint project Apr 8, 2025
@dotnetrepoman dotnetrepoman bot added the πŸ—ΊοΈ mapQUEST Only used as a way to mark an issue as updated. RepoMan should instantly remove it. label Apr 8, 2025
@dotnet-policy-service dotnet-policy-service bot removed the πŸ—ΊοΈ mapQUEST Only used as a way to mark an issue as updated. RepoMan should instantly remove it. label Apr 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc-bug Problem with the content; needs to be fixed [org][type][category] dotnet-framework/svc okr-quality Pri1 High priority, do before Pri2 and Pri3 πŸ“Œ seQUESTered Label to indicate an item has been imported. wpf/subsvc
Projects
Status: πŸ”– Ready
Development

No branches or pull requests

2 participants