Message 1 of 7
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have tried several ways for setting image of pushbutton.
none of them worked. Is it a bug? ( revit2024)
var image = new BitmapImage(new Uri("pack://application:,,,/MyProject;component/Resources/icon128x128.png"));
PushButtonData buttonData = new(name, text, thisAssemblyPath, className);
buttonData.ToolTip = tooltip;
PushButton pushButton = ribbonPanel.AddItem(buttonData) as PushButton;
pushButton.LargeImage = image;
Solved! Go to Solution.