This is a migrated thread and some comments may be shown as answers.

RadSplitButton does not display BackgroundImage property

1 Answer 77 Views
Buttons, RadioButton, CheckBox, etc
This is a migrated thread and some comments may be shown as answers.
Muhammad
Top achievements
Rank 1
Muhammad asked on 20 Sep 2014, 12:16 PM
I have just downloaded trial version of Telerik UI for winforms, I was trying to display an image as BackgroundImage on a RadSplitButton, but when I set the BackgroundImage property it is ignored by the control but on the other hand, the Image property works as normally, but I need to set the BackgroundImageProperty. Why this property is ignored by default, and how to fix it?

Any help will be appreciated

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 23 Sep 2014, 02:34 PM
Hello Muhammad,

Thank you for writing.

The image cannot be seen, as it is covered by the fill elements of the action button and the arrow button. Here is how to hide their fills, hence show the background image:
radSplitButton1.DropDownButtonElement.ActionButton.ButtonFillElement.Visibility = ElementVisibility.Collapsed;
radSplitButton1.DropDownButtonElement.ArrowButton.Fill.Visibility = ElementVisibility.Collapsed;
radSplitButton1.DropDownButtonElement.ButtonSeparator.DrawBorder = false;

If this is not what you are trying to achieve, please let me know of the desired outcome and I will help you achieve it.

Regards,
Stefan
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
Buttons, RadioButton, CheckBox, etc
Asked by
Muhammad
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or