Wrong NotifyCanExecuteChangedFor in example
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 65/100
- Issue type
- Documentation
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- csharp
- Domain
- documentation
Research direction
Open docs/mvvm/generators/RelayCommand.md and locate the “Enabling and disabling commands” section's second example. Compare the NotifyCanExecuteChangedFor attribute with the command shown in the example, update the incorrect reference, and verify the rendered documentation shows the corrected example.
Written by the indexing model from the issue text.
Description
In section 'Enabling and disabling commands', under second example, we have:
[ObservableProperty]
[NotifyCanExecuteChangedFor(nameof(SelectedUser))] // <== this is wrong
private User? selectedUser;
but it should be:
[ObservableProperty]
[NotifyCanExecuteChangedFor(nameof(GreetUser))] // <== this is right
private User? selectedUser;
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: 8d675831-fbcf-cd99-6f2e-f80425e1d148
- Version Independent ID: 8d675831-fbcf-cd99-6f2e-f80425e1d148
- Content: RelayCommand attribute - .NET Community Toolkit
- Content Source: docs/mvvm/generators/RelayCommand.md
- Product: dotnet-communitytoolkit
- GitHub Login: @Sergio0694
- Microsoft Alias: bramin
- Dominant language
- No language data
- Stars
- 168
- Forks
- 134
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from MicrosoftDocs/CommunityToolkit
-
dotnet-communitytoolkit/svc dotnet-maui-community-toolkit/subsvc Pri2
Difficulty 1/5 1-3 hours Newbie friendliness 91/100
MicrosoftDocs/CommunityToolkit#651 · 1 comment ·
-
Just a typo? Opencommunity-toolkit/prod dotnet Pri2
Difficulty 1/5 Under an hour Newbie friendliness 70/100
-
dotnet-communitytoolkit/prod maui Pri1
Difficulty 1/5 Under an hour Newbie friendliness 65/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 38/100
MicrosoftDocs/CommunityToolkit#659 · 1 comment ·
-
A Opendotnet-communitytoolkit/svc Pri2 windows-community-toolkit/subsvc
Difficulty 1/5 Under an hour Newbie friendliness 25/100
MicrosoftDocs/CommunityToolkit#644 · 3 comments ·
All issues in MicrosoftDocs/CommunityToolkit
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
agilepathway/label-checker#640 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
BasedHardware/omi#15662 · 1 comment ·
-
documentation help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
-
documentation good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
amponce/archive-movie-browser#167 ·
-
user-reported
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Kong/developer.konghq.com#7316 ·