public EndShowContextMenuDisposable(CommandBarButtonLightweightControl control)
 {
     this.control = control;
 }
 public void Paint(BidiGraphics g, Rectangle bounds, CommandBarButtonLightweightControl.DrawState drawState)
 {
     _weblogPickerHelper.Paint(g, bounds);
 }
 /// <summary>
 /// Gets the control for this entry.
 /// </summary>
 /// <returns>Lightweight control.</returns>
 public override LightweightControl GetLightweightControl(CommandBarLightweightControl commandBarLightweightControl, bool rightAligned)
 {
     if (commandBarButtonLightweightControl == null)
         commandBarButtonLightweightControl = new CommandBarButtonLightweightControl(commandBarLightweightControl, commandIdentifier, rightAligned);
     return commandBarButtonLightweightControl;
 }