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

5 posts, 1 answers
  1. Patrick
    Patrick avatar
    372 posts
    Member since:
    Aug 2012

    Posted 21 Feb 2012 Link to this post

    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
  2. George
    Admin
    George avatar
    1332 posts

    Posted 23 Feb 2012 Link to this post

    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 >>
  3. DevCraft banner
  4. Patrick
    Patrick avatar
    372 posts
    Member since:
    Aug 2012

    Posted 23 Feb 2012 Link to this post

    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
  5. Patrick
    Patrick avatar
    372 posts
    Member since:
    Aug 2012

    Posted 23 Feb 2012 Link to this post

    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
  6. Answer
    George
    Admin
    George avatar
    1332 posts

    Posted 27 Feb 2012 Link to this post

    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 >>
Back to Top
DevCraft banner