Hello all,
I'm playing with the Silverlight demo controls, particularly the RadPanelBar. I want to be able to hide RadPanelBarItems, but when an expanded PanelBarItem's Visibility is set to Collapsed, that PanelBarItem still takes up space. I'd expect that PanelBarItem to no longer be included in layout, per the MSDN description.
A very simple repro case is below. When I view this control in my browser, I expect the two visible PanelBarItems to be displayed at the top of the PanelBar. Instead, they are displayed at the bottom, as if the collapsed PanelBarItem is still there. Is this expected behavior?
Thanks,
Jacob Champion
I'm playing with the Silverlight demo controls, particularly the RadPanelBar. I want to be able to hide RadPanelBarItems, but when an expanded PanelBarItem's Visibility is set to Collapsed, that PanelBarItem still takes up space. I'd expect that PanelBarItem to no longer be included in layout, per the MSDN description.
A very simple repro case is below. When I view this control in my browser, I expect the two visible PanelBarItems to be displayed at the top of the PanelBar. Instead, they are displayed at the bottom, as if the collapsed PanelBarItem is still there. Is this expected behavior?
<
UserControl
xmlns:telerik
=
"http://schemas.telerik.com/2008/xaml/presentation"
mc:Ignorable
=
"d"
x:Class
=
"SilverlightApplication1.PanelBar"
d:DesignWidth
=
"640"
d:DesignHeight
=
"480"
>
<
Grid
x:Name
=
"LayoutRoot"
Background
=
"White"
>
<
telerik:RadPanelBar
VerticalAlignment
=
"Stretch"
>
<
telerik:RadPanelBarItem
Header
=
"RadTreeViewItem"
IsExpanded
=
"True"
Visibility
=
"Collapsed"
>
<
telerik:RadPanelBarItem
Header
=
"RadTreeViewItem"
/>
</
telerik:RadPanelBarItem
>
<
telerik:RadPanelBarItem
Header
=
"RadTreeViewItem"
>
<
telerik:RadPanelBarItem
Header
=
"RadTreeViewItem"
/>
</
telerik:RadPanelBarItem
>
<
telerik:RadPanelBarItem
Header
=
"RadTreeViewItem"
>
<
telerik:RadPanelBarItem
Header
=
"RadTreeViewItem"
/>
</
telerik:RadPanelBarItem
>
</
telerik:RadPanelBar
>
</
Grid
>
</
UserControl
>
Thanks,
Jacob Champion