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

Bug: changing the theme of a vertical menu resets the orientation to horizontal

4 Answers 19 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Patrick
Top achievements
Rank 2
Veteran
Iron
Patrick asked on 21 Feb 2012, 05:45 PM
Hello,
If I change the theme of a vertical menu, its orientation is reset to horizontal.
Run the attached project to see the problem.
Patrick

4 Answers, 1 is accepted

Sort by
0
George
Telerik team
answered on 23 Feb 2012, 05:18 PM
Hello Patrick,

 
Can you please reattach the sample project?

Kind regards,
George
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Patrick
Top achievements
Rank 2
Veteran
Iron
answered on 23 Feb 2012, 07:12 PM
Hello George,
I uploaded the test case again.
But it seems that I cannot upload a zip file with a project: it is removed by your forum software!
Patrick
0
Patrick
Top achievements
Rank 2
Veteran
Iron
answered on 23 Feb 2012, 07:16 PM
Hello Gorge,
to create the test case, create a new Silverlight application and reference the Telerik.Windows.Controls, Telerik.Windows.Controls.Navigation and Telerik.Windows.Themes.Metro assemblies.

Replace MainPage.xaml with:
<UserControl x:Class="RadControlsSilverlightApp1.MainPage"
        mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480">
    <Grid x:Name="LayoutRoot">
    <telerik:RadMenu Name="Menu"
                     Orientation="Vertical">
      <telerik:RadMenuItem Header="Item1" />
      <telerik:RadMenuItem Header="Item2" />
      <telerik:RadMenuItem Header="Change theme"
                           Click="SetMetroTheme" />
    </telerik:RadMenu>
    </Grid>
</UserControl>
Replace MainPage.xaml.cs with:
using System;
using System.Windows.Controls;
using Telerik.Windows.Controls;
 
namespace RadControlsSilverlightApp1
{
  public partial class MainPage : UserControl
  {
    public MainPage()
    {
      InitializeComponent();
    }
 
    private void SetMetroTheme(object sender, Telerik.Windows.RadRoutedEventArgs e)
    {
      StyleManager.SetTheme(Menu, new MetroTheme());
    }
  }
}
Run the application and click on the Change theme menu item.
Oatrick
0
Accepted
George
Telerik team
answered on 27 Feb 2012, 09:22 AM
Hello Patrick,

 
Thank you for reporting us this bug with the RadMenu control - we logged it in our backlog system and we will fix it in our incoming internal builds. You can observe the PITS item here - 
http://www.telerik.com/support/pits.aspx#/public/silverlight/9934 

I am glad to update your telerik points.

Greetings,
George
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
Menu
Asked by
Patrick
Top achievements
Rank 2
Veteran
Iron
Answers by
George
Telerik team
Patrick
Top achievements
Rank 2
Veteran
Iron
Share this question
or