BarButtonItem item = (BarButtonItem)e.Item;
System.IntPtr _Handle = (System.IntPtr)(cmd as ICommand).Bitmap;
if (_Handle.ToInt32() != )
{
try
{
item.Glyph = System.Drawing.Bitmap.FromHicon((System.IntPtr)(cmd as ICommand).Bitmap);
}
catch
{
try
{
item.Glyph = System.Drawing.Image.FromHbitmap(_Handle);
}
catch
{
}
}
}