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

Horizontal overflow area

2 Answers 89 Views
ToolBar
This is a migrated thread and some comments may be shown as answers.
Greg
Top achievements
Rank 1
Greg asked on 29 Jul 2016, 12:17 PM
Is there a way to make the toolbar overflow area horizontal?

Currently it seems to display elements vertically and that not what I desire considering the fact that I'm customizing the layout of the toolbar controls.

Preferably the overflow orientation should match that of the toolbar.

2 Answers, 1 is accepted

Sort by
0
Accepted
Milena
Telerik team
answered on 01 Aug 2016, 09:38 AM
Hello Greg,

The "Overflow area" is placed in a popup inside the template of ToolBar control. You can easily change its orientation using Loaded event of the ToolBar:
private void toolBar_Loaded(object sender, RoutedEventArgs e)
{
    var popup = this.toolBar.ChildrenOfType<Popup>().FirstOrDefault(x => x.Name == "PART_Overflow");
    var overFlow = popup.Child.ChildrenOfType<RadToolBarOverflowPanel>().FirstOrDefault();
    if (overFlow != null)
    {
        overFlow.Orientation = System.Windows.Controls.Orientation.Horizontal;
    }
}

I hope this information helps.

Regards,
Milena
Telerik by Progress
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
0
Greg
Top achievements
Rank 1
answered on 01 Aug 2016, 02:46 PM
Excellent, just what I needed. Thank you!
Tags
ToolBar
Asked by
Greg
Top achievements
Rank 1
Answers by
Milena
Telerik team
Greg
Top achievements
Rank 1
Share this question
or