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 DynamicResources code sample is incorrect #439

Open
egvijayanand opened this issue Jul 4, 2024 · 1 comment
Open

The DynamicResources code sample is incorrect #439

egvijayanand opened this issue Jul 4, 2024 · 1 comment

Comments

@egvijayanand
Copy link

Type of issue

Code doesn't work

Description

The DynamicResources code sample is incorrect.

Here is the updated code sample, it's a Tuple, so it should be enclosed within parentheses.

new Label().DynamicResources((Label.TextColorProperty, "TextColor"), 
                                (Label.FontFamilyProperty, "FontFamily"));

Page URL

https://learn.microsoft.com/en-us/dotnet/communitytoolkit/maui/markup/extensions/dynamic-resource-handler-extensions

Content source URL

https://github.com/MicrosoftDocs/CommunityToolkit/blob/main/docs/maui/markup/extensions/dynamic-resource-handler-extensions.md

Document Version Independent Id

b1bcba50-4c74-adc4-9f15-b989dcaced01

Article author

@brminnick

Metadata

  • ID: b1bcba50-4c74-adc4-9f15-b989dcaced01
  • Service: dotnet-communitytoolkit
  • Sub-service: dotnet-maui-community-toolkit
@brminnick
Copy link
Contributor

Thanks Vijay!

Could you submit a quick PR to fix it? I actually don't have admin rights on the docs, but we can get Gerald to merge it 💯

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

No branches or pull requests

2 participants