Skip to content
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

The code is incomplete, ans cannot be used for trial/Testing, so it is pointless #1132

Open
chopperaddict opened this issue Aug 1, 2021 · 5 comments
Assignees
Labels
doc-bug Problem with the content; needs to be fixed [org][type][category] dotnet-framework/svc okr-health Content-health KR: Concerns article defects/freshness or build warnings. okr-quality Pri2 Medium priority wpf/subsvc

Comments

@chopperaddict
Copy link

code missing

<RepeatButton Style="{StaticResource MenuScrollButton}"

MenuScrollButton cannot be found .....

Another one 👍 Data="{StaticResource DownArrow}" />
Same error.

So the example is totally unusable for learning how to at least to understand, or at least get thru this nightmare just to style a menu item...


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

@adegeo
Copy link
Contributor

adegeo commented Aug 3, 2021

I'll work on adding all the details. I'll just regenerate and paste in the XAML. You can do this yourself by generating a copy of any control's template in Visual Studio through the Document Outline pane. Right-click on the control you want to generate a template for, and then choose create a copy:

image

@adegeo adegeo added the doc-bug Problem with the content; needs to be fixed [org][type][category] label Aug 3, 2021
@dotnet-bot dotnet-bot removed the ⌚ Not Triaged Not triaged label Aug 3, 2021
@adegeo adegeo self-assigned this Aug 3, 2021
@chopperaddict
Copy link
Author

chopperaddict commented Aug 3, 2021 via email

@adegeo
Copy link
Contributor

adegeo commented Aug 3, 2021

I suspect all of these WPF .NET Framework reference articles are out of date with all the details. They were written like 10 years ago. Right now our efforts are on porting a lot of this content to .NET 5 in the .NET documentation area. However, since you filed this bug, I'll paste in the latest generated XAML and get the article updated.

@adegeo
Copy link
Contributor

adegeo commented Aug 3, 2021

Also, note that these articles don't change aspects of the template, they just show you what the template looks like. You don't get any added benefit copying these "examples." These articles aren't true examples and they don't change the template, they're more reference material. You're better off using the generate template feature of Visual Studio. You'll get the most up-to-date template that way.

We have a generic article that shows you how to change templates, but it doesn't go into detail on all controls: https://docs.microsoft.com/en-us/dotnet/desktop/wpf/controls/how-to-create-apply-template?view=netframeworkdesktop-4.8

@chopperaddict
Copy link
Author

chopperaddict commented Aug 3, 2021 via email

@dotnet-policy-service dotnet-policy-service bot added the okr-health Content-health KR: Concerns article defects/freshness or build warnings. label Jan 19, 2024
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-health Content-health KR: Concerns article defects/freshness or build warnings. okr-quality Pri2 Medium priority wpf/subsvc
Projects
None yet
Development

No branches or pull requests

4 participants