MicrosoftDocs / windows-dev-docs

Conceptual and overview content for developing Windows apps
Creative Commons Attribution 4.0 International
667 stars 1.18k forks source link

Code sample missing a namespace directive for CommunityToolkit.Maui.Markup.GridRowsColumns #5026

Closed ContrastingSounds closed 2 weeks ago

ContrastingSounds commented 3 weeks ago

Type of issue

Code doesn't work

Feedback

Code doesn't work unless you add the following namespace directive:

using static CommunityToolkit.Maui.Markup.GridRowsColumns;

It fails with CS0103 errors for 'Rows', 'Columns', 'Star', 'Stars'

Page URL

https://learn.microsoft.com/en-us/windows/apps/windows-dotnet-maui/tutorial-csharp-ui-maui-toolkit

Content source URL

https://github.com/MicrosoftDocs/windows-dev-docs/blob/docs/hub/apps/windows-dotnet-maui/tutorial-csharp-ui-maui-toolkit.md

Author

@alvinashcraft

Document Id

ebd638a3-0daf-2b8c-24a2-57b5dcca1fa6

alvinashcraft commented 2 weeks ago

Thanks for calling this out, @ContrastingSounds. I've updated the topic to include the directive. The PR was just merged and should be live shortly. Cheers!