I have a c# aplication where I have to build programaticly many RadImageButtonElements from scratch. When I move the mouse over the RadImageButtonElement the button doesn't highlight if I hover with the mouse over the button. When I add a new RadImageButtonElement from RadRibbonBar when I hover over with the mouse I see that the RadImageButtonElement will be highlighted. Can you please help me what to add to my my code so that my RadImageButtonElement can be highlighted as well. Thank you for your time and if it is not the correct forum please move this thread to the correct forum.
At RadRibbonBar you can add an RadImageButtonElement through the Edit Items functionality. I have to create a new RadImageButtonElement programmability and cannot make the item highlighted when my mouse hovers over the RadImageButtonElement. When I add an RadImageButtonElement through Edit Items functionality then I can highlight the RadImageButtonElement when I hover with my mouse over the ribbonbar element.
I added the code:
RadImageButtonElement oButton = new RadImageButtonElement();
// add image to the button and other things
oButton.Text = oOperation.ToString();
oButton.DisplayStyle = DisplayStyle.ImageAndText;
oButton.TextImageRelation = TextImageRelation.ImageAboveText;
oButton.Image = oButton.ImageClicked = oButton.ImageHovered = GetButtonImage(oOperation, true);
rrbgOptions is the form RadRibbonBarGroup . When I run my program inside the RadRibbonBarGroup the image buttons created with the RadImageButtonElement apears but when I move my mouse over the buttons they don't highlight.
When I add the Image button on using the form RadRibbonBarGroup Edit Items controls to create the Image buttons the buttons will be highlighted when I move my mouse over them.
Can you please help so that the Image Buttons created programaticly as shown as above can be highlighted when I move the mouse over them.