Skip to content

[Question] Can I combine use DynamicVisibility and BeforeQueryStatus ? #194

@phuocle

Description

@phuocle

I can use the <CommandFlag>DynamicVisibility</CommandFlag> that show/hide the popup window code menu with the extension .cs and .vb correctly. (Thanks @madskristensen for the sample)

But on the popup, I want to use: BeforeQueryStatus because I want to check the current position in the class and class should inherit by an interface

My old code working fine with BeforeQueryStatus (and sure I don't use DynamicVisibility)
It used ProvideAutoLoad that I don't want to use, it make my extension take time to load.

Any help or sample with the combine DynamicVisibility and BeforeQueryStatus wil be great. Tried a lot of cases but not success.

Thanks.

PS: On the way convert all existing code to Community.VisualStudio.Toolkit, great lib.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions