Won't Fix
Last Updated: 17 May 2016 10:40 by ADMIN
ADMIN
Telerik Admin
Created on: 21 Mar 2013 14:24
Category: Docking
Type: Bug Report
3
On startup if the IsHidden property of RadPane is set to true the Pane is shown and immediately hidden.
When the IsHidden property of Pane is set to true at startup the Pane is shown and immediately hidden.
1 comment
ADMIN
Nasko
Posted on: 17 May 2016 10:39
Hi,

This behavior could only be observed in SL and it is caused by the refreshing Visibility of the PaneGroups. When the Group is initialized it is initially Visible and after it gets completely loaded its Visibility and status of its Panes (remove them if their IsHidden property is set to True) get updated - if there are no visible items in the Group the PaneGroup is Collaped which causes the observed flickering of the layout.

In order to workaround this unexpected behavior you could create a class that derives from the RadPaneGroup class and override its OnApplyTemplate method. Inside it to  create same custom logic for Collapsing initially the PaneGroup. Thus the PaneGroup will be Collaped initially and will be visualized after it gets loaded  - the initial position that is immediately hidden should not be visualized:

public class CustomPaneGroup : RadPaneGroup
{
    public override void OnApplyTemplate()
    {
        base.OnApplyTemplate();

        if (this.Items.Count == 1 && (this.Items[0] as RadPane).IsHidden)
        {
            this.Visibility = System.Windows.Visibility.Collapsed;
        }
    }
}

Regards,
Nasko