ArcGis 10 Sp4 - BaseCommand UpdateBitmap does not change Bitmap on Button

Discussion created by agreaves on Jul 25, 2012
Latest reply on Jul 27, 2012 by FZhang-esristaff

I've implemented BaseCommand as such (this is just an example class, I'm excluding decorated class attributes)

public class TogglingCommand : BaseCommand
    public TogglingCommand()
        m_bitmap = Resources.GenerateCalloutsTrue;

    private bool IsEnabled { get; set; }
    public override void OnClick()
        IsEnabled = !IsEnabled;
        UpdateBitmap( IsEnabled ? Resources.GenerateCalloutsTrue : Resources.GenerateCalloutsFalse );

    public override void OnCreate( object hook )

Whenever a click happens then the button's bitmap is supposed to swap to a new bitmap.  However, the bitmap no longer changes.  This functionality worked prior to ArcGis 10.

I re-implemented BaseCommand making my own base class that implements ICommand and I handled updating the bitmap which still did not correct this problem.

Does anyone have any feedback on this issue or has anyone found a work around for it?