You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Question] Can I combine use DynamicVisibility and BeforeQueryStatus ? #194
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.
You can only use BeforeQueryStatus once your package has been loaded. So if you need to use it, you should set the ProvideAutoload attribute on your package class
Activity
madskristensen commentedon Nov 2, 2021
You can only use BeforeQueryStatus once your package has been loaded. So if you need to use it, you should set the
ProvideAutoloadattribute on your package class