Skip to content

VisibilityConstraints doesn't work properly, or it works just before the command is executed #487

Answered by madskristensen
aglasencnik asked this question in Q&A
Discussion options

You must be logged in to vote

Visibility constrains works until your Package is loaded, then the command takes over and you can implement the logic using BeforeQueryStatus, or you can delegate the logic back to the VisibilityConstraint using this method in your Command:

protected override Task InitializeCompletedAsync()
{
    Command.Supported = false;
    return base.InitializeCompletedAsync();
}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@aglasencnik
Comment options

Answer selected by aglasencnik
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants