Approved
Last Updated: 03 Aug 2016 12:46 by B
B
Created on: 20 Mar 2015 13:27
Category: Docking
Type: Feature Request
1
Docking: I would like OverflowMode to work for all RadPaneGroup in xaml/codebehind and this be persisted through SaveLayout/LoadLayout
I would like OverflowMode to work for all RadPaneGroup in xaml/codebehind and this be persisted through SaveLayout/LoadLayout.

For example:

<telerik:RadDocking.DocumentHost>
    <telerik:RadSplitContainer x:Name="MainContainer"
                                           Orientation="Vertical">
					<telerik:RadPaneGroup ScrollMode="Item"
                                          x:Name="GroupMainTop"
                                          OverflowMode="Scroll"
                                          ScrollViewer.HorizontalScrollBarVisibility="Auto"
                                          cal:RegionManager.RegionName="RegionMainTop"
                                          telerik:ProportionalStackPanel.RelativeSize="150, 400" />

Works, but when I do:

        private void LoadLayoutInternal(XElement xml)
        {
            using (MemoryStream stream = new MemoryStream())
            {
                xml.Save(stream);
                stream.Seek(0, SeekOrigin.Begin);
                this.Docking.LoadLayout(stream);
            }
            Dispatcher.BeginInvoke(() => FixDockProperties());
        }

The RadPaneGroup no longer has OverFlowMode Scroll

When I try to fix this in code behind, this has no effect:

        private void FixDockProperties()
        {
            // Fix diverse properties die door laden van de layout verloren zijn gegaan.
            // Dat lijkt niet te werken, ik heb Telerik gevraagd waarom dat is:
            // http://www.telerik.com/forums/overflowmode=-scroll-disappears-when-i-save-load-layout#mwEJP5eh8EG4TbNqfnd00g
            GroupMainTop.OverflowMode = Telerik.Windows.Controls.TabControl.TabOverflowMode.Scroll;
            GroupMainTop.SetValue(ScrollViewer.HorizontalScrollBarVisibilityProperty, ScrollBarVisibility.Auto);
            GroupMainTop.ScrollMode = TabControlScrollMode.Item;


0 comments