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

SubMenuItem BackgroundColor

8 Answers 63 Views
Menu
This is a migrated thread and some comments may be shown as answers.
yelong
Top achievements
Rank 1
yelong asked on 15 Jul 2009, 02:55 PM

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

8 Answers, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 17 Jul 2009, 06:42 AM
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.
0
yelong
Top achievements
Rank 1
answered on 17 Jul 2009, 05:21 PM

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
0
Dimitrina
Telerik team
answered on 22 Jul 2009, 02:19 PM
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.
0
yelong
Top achievements
Rank 1
answered on 22 Jul 2009, 04:17 PM

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
0
Dimitrina
Telerik team
answered on 24 Jul 2009, 03:39 PM
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.
0
yelong
Top achievements
Rank 1
answered on 24 Jul 2009, 04:08 PM

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
0
Nikolay
Telerik team
answered on 27 Jul 2009, 01:39 PM
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.
0
yelong
Top achievements
Rank 1
answered on 27 Jul 2009, 03:26 PM

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
Tags
Menu
Asked by
yelong
Top achievements
Rank 1
Answers by
Hristo
Telerik team
yelong
Top achievements
Rank 1
Dimitrina
Telerik team
Nikolay
Telerik team
Share this question
or