Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

Enable/Disable a "vsct" button - Is BeforeQueryStatus the right thing?

$
0
0

Hello there,

I've a ToolWindow with a ToolBar, implemented with vsct. I want to enable/disable a button in this ToolBar, when there is an item selected in the WPF datagrid.

Currently I'm using the BeforeQueryStatus-Methode to handle this. The problem is, that this method only get's called when there's a new ui state (or something similar). But that's not the case every time. So the enable/disable action is not quite constant or reliable.

How can I handle this. Can I force a UI refresh? Or is there another (better) approach.

Thanks,
Fabian


The Visual Studio Settings-Switcher! Visit http://visualstudiogallery.msdn.microsoft.com/a79072f7-3109-44a0-95c0-9c50e729d6a3


Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>