Open egvijayanand opened 3 months ago
Code doesn't work
The DynamicResources code sample is incorrect.
DynamicResources
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"));
https://learn.microsoft.com/en-us/dotnet/communitytoolkit/maui/markup/extensions/dynamic-resource-handler-extensions
https://github.com/MicrosoftDocs/CommunityToolkit/blob/main/docs/maui/markup/extensions/dynamic-resource-handler-extensions.md
b1bcba50-4c74-adc4-9f15-b989dcaced01
@brminnick
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 💯
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.
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