ActionExtension for events does not respect guard proeprty
- Dominant language
- C#
- Stars
- 1.1k
- Forks
- 155
- PR merge metrics
- No merged PRs in 30d
Description
From wiki:
>The syntax is exactly the same, although there's no concept of a guard property here.
Why? I want to be able to set `MouseLeftButtonUp="{s:Action SomeAction}"` and only have the handler actually execute when the guard property lets it. The justification is that I want to be able to use events in the same way I use commands, without having to use some kind of `EventToCommand` contraption.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by tracing ActionExtension for event handling and how the guard property is evaluated for commands. Reproduce the MouseLeftButtonUp example, then verify that the event handler executes only when the guard property allows it, without requiring EventToCommand.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100