SubMenuItem BackgroundColor

9 posts, 0 answers
  1. yelong
    yelong avatar
    28 posts
    Member since:
    Aug 2006

    Posted 15 Jul 2009 Link to this post


    I'd like to know how to change the background color for submenuitem.

    The code below doesn't work for radMenuItem11.

    Thanks,

    Yelong

    <telerikNavigation:RadMenu x:Name="radMenu">
                <telerikNavigation:RadMenuItem x:Name="radMenuItem1" Header="MenuItem1">
                    <telerikNavigation:RadMenuItem x:Name="radMenuItem11" Header="MenuItem11"> </telerikNavigation:RadMenuItem>
                    <telerikNavigation:RadMenuItem x:Name="radMenuItem12" Header="MenuItem12"> </telerikNavigation:RadMenuItem>
                    <telerikNavigation:RadMenuItem x:Name="radMenuItem13" Header="MenuItem13"></telerikNavigation:RadMenuItem>
                    <telerikNavigation:RadMenuItem x:Name="radMenuItem14" Header="MenuItem14"></telerikNavigation:RadMenuItem>
                </telerikNavigation:RadMenuItem>
                <telerikNavigation:RadMenuItem x:Name="radMenuItem2" Header="MenuItem1"></telerikNavigation:RadMenuItem>
                <telerikNavigation:RadMenuItem x:Name="radMenuItem3" Header="MenuItem1"></telerikNavigation:RadMenuItem>
            </telerikNavigation:RadMenu>


                this.radMenuItem1.Foreground = new SolidColorBrush(Colors.Blue); //works
                this.radMenuItem1.Background = new SolidColorBrush(Colors.Red); //works
                this.radMenuItem11.Foreground = new SolidColorBrush(Colors.Blue); //works
                this.radMenuItem11.Background = new SolidColorBrush(Colors.Red); //Doesn't work
  2. Hristo
    Admin
    Hristo avatar
    832 posts

    Posted 17 Jul 2009 Link to this post

    Hello yelong,

    Thank you for reporting this.
    It turns out that we missed the binding to background in some of the RadMenuItem control templates.
    We will fix it for SP1.
    I've updated your telerik points.

    Sincerely yours,
    Hristo
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. DevCraft banner
  4. yelong
    yelong avatar
    28 posts
    Member since:
    Aug 2006

    Posted 17 Jul 2009 Link to this post


    Hi Hristo,

    Thanks for your reply.

    If you are working on the fix, maybe you would like to know another issue.

    If you put an icon in submenuitem and set the image size 32 x 32, the left side margin column is not extended with the icon size. It worked well in previous versions.

    It will be great if it can be fixed with the next SP.

    Thanks,

    Yelong
  5. Dimitrina
    Admin
    Dimitrina avatar
    442 posts

    Posted 22 Jul 2009 Link to this post

    Hello yelong,

    This is a design issue. You have to edit your pictures in a graphic editor in order to make them bigger than 16x16px.

    Best wishes,
    Dimitrina
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  6. yelong
    yelong avatar
    28 posts
    Member since:
    Aug 2006

    Posted 22 Jul 2009 Link to this post


    Sorry, I didn't understand you. My pictures original size is bigger than 16x16. Do you mean I need to do something to fix it? If yes, what shall I do exactly? Or you will provide a fix in next release?

    Thanks,

    Yelong
  7. Dimitrina
    Admin
    Dimitrina avatar
    442 posts

    Posted 24 Jul 2009 Link to this post

    Hello yelong,

    I prepared a sample project for you to get you started. Attached, please find the file. Please download it and give it a go. Hope this helps.

    All the best,
    Dimitrina
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  8. yelong
    yelong avatar
    28 posts
    Member since:
    Aug 2006

    Posted 24 Jul 2009 Link to this post


    Hi Dimitrina,

    Thank you very much for you help.

    I use the template you provided in the UserControl.Resources, It works great now.

    My next question is:
    Will you set this template as default effect in the next release? It's what I prefer, then I can wait for the release.
    Or if not, I will add the template in my xmal's UserControl.Resources.

    Thanks,

    Yelong
  9. Nikolay
    Admin
    Nikolay avatar
    3997 posts

    Posted 27 Jul 2009 Link to this post

    Hi yelong,

    For the time being, we do not plan to make this template default. However, if this appears to be a common client request, we will definitely make this template the default one.

    All the best,
    Nick
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  10. yelong
    yelong avatar
    28 posts
    Member since:
    Aug 2006

    Posted 27 Jul 2009 Link to this post


    Hi Nick,

    Thanks for your reply. I will embed the template in my app's resource, no problem.

    But just let you know, it WAS the default in previouse one or serveral release.

    Our application behaved well and broke since upgrade.

    Hope you won't change any default behaviour any more later.

    Thanks,

    Yelong
Back to Top
DevCraft banner