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

ClickMeButton_Click missing in instruction 18 #29

Open
sjharper79 opened this issue Jan 8, 2024 · 1 comment
Open

ClickMeButton_Click missing in instruction 18 #29

sjharper79 opened this issue Jan 8, 2024 · 1 comment

Comments

@sjharper79
Copy link

Chapter: 18
Page Number: 666
Section Title: Adding shell navigation and more content pages
Problem to fix: In step 18, the instructions state "Modify the Button element to give it a name of ClickMeButton and a new event handler for its Clicked event, as shown in Figure 18.13." In the figure, the event handler name is blank. There is and intellisense popup that says "" but no actual event handler name.
Suggested solution: Add the name to step 18 and update the image to include the name. Pressing Ctrl + Space autofills the name "ClickMeButton_Clicked" which is different from the name shown in step 20, which is "ClickeMeButton_Click."

@markjprice
Copy link
Owner

markjprice commented Jan 8, 2024

Yes, it is blank in the screenshot to show the text which is how you add a new event handler for its Clicked event. Only after you press Enter to select that will it then add the text inside the "". This is as described in the toolip, "Bind event to a newly created method called ClickMeButton_Clicked. Use Go To Definition to navigate to the newly created method." Alternatively, you can use your technique of pressing Ctrl + Space. Both techniques work.

In Step 20, you are correct that the method name is wrong in the book and should be ClickMeButton_Clicked. I have added this to the errata here: https://github.com/markjprice/apps-services-net7/blob/main/docs/errata/errata.md#page-667---adding-shell-navigation-and-more-content-pages, and here for 2nd edition: https://github.com/markjprice/apps-services-net8/blob/main/docs/errata/errata.md#page-726---adding-shell-navigation-and-more-content-pages

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants