如何将 WPF 组件添加到 AvalonDock
我已经为我的.NET 4.0 创建了一个名为 ChartPanel 的 WPF UserControl。我使用 AvalonDock 作为我的对接库。我有以下用于 MainWindow 的 WPF 代码:
<ad:DockingManager x:Name="dockManager" Grid.Row="1">
<ad:ResizingPanel Orientation="Horizontal">
<ad:DockablePane>
<ad:DockableContent x:Name="fileFrame" Title="File List">
<TreeView Name="fileTree"/>
</ad:DockableContent>
<ad:DockableContent x:Name="viewFrame" Title="View List">
<TreeView Name="viewTree"/>
</ad:DockableContent>
</ad:DockablePane>
<ad:DocumentPane>
<ad:DocumentContent Name="dockContent"></ad:DocumentContent>
</ad:DocumentPane>
</ad:ResizingPanel>
</ad:DockingManager>
How do I add my ChartPanel.xaml control to the DocumentPane or DocumentContent object?注意:我不确定应该将其添加到哪个对象,DocumentPane 还是 DocumentContent。
I have created a WPF UserControl called ChartPanel to my .NET 4.0. I am using AvalonDock as my docking library. I have the following WPF code for the MainWindow:
<ad:DockingManager x:Name="dockManager" Grid.Row="1">
<ad:ResizingPanel Orientation="Horizontal">
<ad:DockablePane>
<ad:DockableContent x:Name="fileFrame" Title="File List">
<TreeView Name="fileTree"/>
</ad:DockableContent>
<ad:DockableContent x:Name="viewFrame" Title="View List">
<TreeView Name="viewTree"/>
</ad:DockableContent>
</ad:DockablePane>
<ad:DocumentPane>
<ad:DocumentContent Name="dockContent"></ad:DocumentContent>
</ad:DocumentPane>
</ad:ResizingPanel>
</ad:DockingManager>
How do I add my ChartPanel.xaml control to the DocumentPane or DocumentContent object? Note: I'm not sure which object I should be adding it to, the DocumentPane or DocumentContent.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
基本上就是这样,没有什么复杂的。它周围的标签将是 DockableContent 或 DocumentContent。
Basically like this, there is nothing complicated in it. The tag surrounding it will be either DockableContent or DocumentContent.