I'm trying to load a image onto a Ribbon Button. This is the System.Windows.Controls.RibbonBar type.
here is the code:
public RibbonGroup CreateButtons()
RibbonGroup GroupControlComputers = new RibbonGroup();
GroupControlComputers.Header = "Computer Control";
public RibbonButton DropdownButton(String Caption)
RibbonButton NewRibbonButton = new RibbonButton();
NewRibbonButton.Label = Caption;
NewRibbonButton.AllowDrop = true;
I cant figure out how to add a icon. i can add the button without an image with no problems
Path to class file creating button is MyProject\Functions\Ribbonbar.cs
Path to the Icon File is MyProject\Images\Test\smallicon.ico
I have tried to figure out the LargeImageSource and just cant understand what I need to do.
Any help would be appreciated