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

Scrolling Menus and context menus

3 Answers 67 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Jamest
Top achievements
Rank 2
Jamest asked on 01 Dec 2009, 08:43 PM
Is there a way to provide a MS Windows like vertical over flow to menus/context menus by either scrolling in the same column or pushing the overflow of menus into more columns?
       Thanks,
  Jordan

3 Answers, 1 is accepted

Sort by
0
Valeri Hristov
Telerik team
answered on 03 Dec 2009, 12:13 PM
Hello Ender,

I think adding a ScrollViewer in the RadMenuItem control template should be doable, however, I would recommend the easier approach, described here:
http://blogs.telerik.com/valerihristov/posts/09-06-18/scrollable_menu_%e2%80%93_workaround_with_a_multi-column_menu_and_radcontrols_for_silverlight.aspx

We have a running example here:
http://demos.telerik.com/silverlight/#Menu/MultiColumnMenu

Sincerely yours,
Valeri Hristov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Jamest
Top achievements
Rank 2
answered on 03 Dec 2009, 05:45 PM
Valeri Hristov,
  Thank you for the reply. This is great...one more question is there a way to set the MaxHeight of the wrap panel's in the ItemContainerStyle or to  bind with the height of the window?
         Thanks,
               Jordan
0
Jamest
Top achievements
Rank 2
answered on 03 Dec 2009, 06:30 PM
I suppose I found a way to do this for now.

 

<Style x:Key="ItemStyle" TargetType="telerikNavigation:RadMenuItem">  
            <Setter Property="ItemsPanel">  
                <Setter.Value> 
                    <ItemsPanelTemplate> 
                        <telerik:RadWrapPanel Margin="0,0,0,20" Orientation="Vertical" MaxHeight="{Binding ElementName=LayoutRoot, Path=ActualHeight}" /> 
                    </ItemsPanelTemplate> 
                </Setter.Value> 
            </Setter> 
        </Style> 

Thank you again for your help.

Tags
Menu
Asked by
Jamest
Top achievements
Rank 2
Answers by
Valeri Hristov
Telerik team
Jamest
Top achievements
Rank 2
Share this question
or