Silverlight:隐藏RadPaneGroup问题
嗨,我面临一个非常奇怪的问题。
我的要求是在页面的左侧有一棵树,在页面的右侧有一个视图。单击树的各个节点会显示不同的视图。
我已经使用两个 rad 窗格组实现了这一点。现在我已经实现了所有逻辑,树节点隐藏或显示所需的 RadPaneGroup,所以我正在走正确的道路。
但问题是,当页面最初加载时,会显示两个窗格组。我想要一个最初隐藏的。第二个 RadPane 组可见性已折叠,但仍然显示。我最初如何隐藏 rad 窗格组之一。
亲切的问候,
<telerik:RadDocking Grid.Row="2" AllowUnsafeMode="True" BorderThickness="0" Background="#F2F2F3" HasDocumentHost="True" HorizontalAlignment="Stretch" Margin="0,0,0,0" Name="radDocking1" VerticalAlignment="Stretch">
<telerik:RadDocking.DocumentHost>
<telerik:RadSplitContainer InitialPosition="FloatingDockable">
<telerik:RadPaneGroup Background="#F2F2F3" Name="redemptionAssignmentViewPaneGroup" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" telerik:ProportionalStackPanel.RelativeSize="400, 200" >
<telerik:RadPane Header="Assignment View" CanUserClose="False">
</telerik:RadPane>
</telerik:RadPaneGroup>
<telerik:RadPaneGroup Visibility="Collapsed" Background="#F2F2F3" Name="redemptionBacthViewPaneGroup" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" telerik:ProportionalStackPanel.RelativeSize="400, 200" BackgroundVisibility="Collapsed">
<telerik:RadPane Header="Assignment View" CanUserClose="False">
</telerik:RadPane>
<telerik:RadPane Header="Assignment View" CanUserClose="False">
</telerik:RadPane>
</telerik:RadPaneGroup>
</telerik:RadSplitContainer>
</telerik:RadDocking.DocumentHost>
<telerik:RadSplitContainer InitialPosition="DockedLeft" Width="210">
<telerik:RadPaneGroup>
<telerik:RadPane Header="Redemption Center Center" CanDockInDocumentHost="True" CanUserClose="False" PaneHeaderVisibility="Visible">
<my:RedemptionTreeView VerticalAlignment="Stretch" x:Name="redemptionTree"/>
</telerik:RadPane>
</telerik:RadPaneGroup>
</telerik:RadSplitContainer>
</telerik:RadDocking>
Hi i am facing a very strange problem.
My requirement is to have a tree on the left hand side of a page a view on the right hand side of the page. Clicking various nodes of the tree shows different views.
I have implemented this using two rad pane groups. Now i have implemented all the logic and the tree nodes hide or show the desired RadPaneGroup, so i am going on the right path.
But the problem is that when the page initially loads both Pane Groups are shown. I want to have one initially hidden. The second RadPane Group visibility is collapsed but it still shows up. How do i hide one of the rad pane group initially.
Kind Regards,
<telerik:RadDocking Grid.Row="2" AllowUnsafeMode="True" BorderThickness="0" Background="#F2F2F3" HasDocumentHost="True" HorizontalAlignment="Stretch" Margin="0,0,0,0" Name="radDocking1" VerticalAlignment="Stretch">
<telerik:RadDocking.DocumentHost>
<telerik:RadSplitContainer InitialPosition="FloatingDockable">
<telerik:RadPaneGroup Background="#F2F2F3" Name="redemptionAssignmentViewPaneGroup" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" telerik:ProportionalStackPanel.RelativeSize="400, 200" >
<telerik:RadPane Header="Assignment View" CanUserClose="False">
</telerik:RadPane>
</telerik:RadPaneGroup>
<telerik:RadPaneGroup Visibility="Collapsed" Background="#F2F2F3" Name="redemptionBacthViewPaneGroup" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" telerik:ProportionalStackPanel.RelativeSize="400, 200" BackgroundVisibility="Collapsed">
<telerik:RadPane Header="Assignment View" CanUserClose="False">
</telerik:RadPane>
<telerik:RadPane Header="Assignment View" CanUserClose="False">
</telerik:RadPane>
</telerik:RadPaneGroup>
</telerik:RadSplitContainer>
</telerik:RadDocking.DocumentHost>
<telerik:RadSplitContainer InitialPosition="DockedLeft" Width="210">
<telerik:RadPaneGroup>
<telerik:RadPane Header="Redemption Center Center" CanDockInDocumentHost="True" CanUserClose="False" PaneHeaderVisibility="Visible">
<my:RedemptionTreeView VerticalAlignment="Stretch" x:Name="redemptionTree"/>
</telerik:RadPane>
</telerik:RadPaneGroup>
</telerik:RadSplitContainer>
</telerik:RadDocking>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
泰勒里克说:
RadPanelGroup 和可见性折叠不起作用
因此,您需要隐藏 RadPaneGroup 中的每个 RadPane 以隐藏 RadPaneGroup:
您也可以在后面执行代码:
隐藏所有窗格文档
Telerik said :
RadPanelGroup and Visibility collapsed not working
So you need to hide each of the RadPane in the RadPaneGroup to hide the RadPaneGroup :
You could also do code behind :
Hiding All Panes Documentation