public void ConvertToPic() { UIThreadExecutor.Execute(() => { Ribbon.ConvertToPictureButtonClick(new RibbonControl("ConvertToPic")); }); }