RadSplitButton does not display BackgroundImage property

2 posts, 0 answers
  1. Muhammad
    Muhammad avatar
    1 posts
    Member since:
    Sep 2014

    Posted 20 Sep 2014 Link to this post

    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
  2. Stefan
    Stefan avatar
    2891 posts

    Posted 23 Sep 2014 Link to this post

    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.

    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.
  3. DevCraft R3 2016 release webinar banner
Back to Top