Skip to content

Hyperlink command extension is always executing the attached command #3171

@vgromfeld

Description

@vgromfeld

Describe the bug

The command set to an hyperlink using HyperlinkExtensions.Command attached property is always executed. It does not consider the ICommand.CanExecute() value.

  • Is this bug a regression in the toolkit? If so, what toolkit version did you last see it work:

Steps to Reproduce

Steps to reproduce the behavior:

  1. Attach a disabled command to an Hyperlink control using HyperlinkExtensions.Command
  2. Click on the link
  3. Observe that the command is executed

Expected behavior

The attached command should not be executed.

Environment

NuGet Package(s): 6.0.0.0

Package Version(s):

Metadata

Metadata

Assignees

No one assigned

    Labels

    Completed 🔥bug 🐛An unexpected issue that highlights incorrect behavior

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions