Created
January 2, 2017 20:22
-
-
Save bjoerntx/8e52597a7c0df63321a0e7262923b9b2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// create a new RibbonItem | |
RibbonButton rbMyButton = new RibbonButton() | |
{ | |
Text = "My RibbonButton", | |
LargeIcon = Image.FromFile("icons/clipboard.png"), | |
SmallIcon = Image.FromFile("icons/checkmark.png") | |
}; | |
// attach Click event | |
rbMyButton.Click += RbMyButton_Click; | |
// create a new RibbonGroup | |
HorizontalRibbonGroup rgMyRibbonGroup = new HorizontalRibbonGroup() | |
{ | |
Text = "My RibbonGroup", | |
ShowSeperator = false, | |
SmallIcon = Image.FromFile("icons/checkmark.png"), | |
LargeIcon = Image.FromFile("icons/clipboard.png"), | |
}; | |
// add the RibbonItem to the RibbonGroup | |
rgMyRibbonGroup.RibbonItems.Add(rbMyButton); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment