Horizontal overflow area

3 posts, 1 answers
  1. Greg
    Greg avatar
    34 posts
    Member since:
    Sep 2012

    Posted 29 Jul Link to this post

    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. Answer
    Milena
    Admin
    Milena avatar
    204 posts

    Posted 01 Aug Link to this post

    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.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Greg
    Greg avatar
    34 posts
    Member since:
    Sep 2012

    Posted 01 Aug in reply to Milena Link to this post

    Excellent, just what I needed. Thank you!
Back to Top