问题标签 [dockpanel]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
java - 如何使用 Infonode 库将生成的动态视图添加到根窗口?
我在使用 infonode 对接库时遇到问题。我根据提供的示例创建了根窗口、动态视图方法。只是稍微修改了一下,然后尝试使用它。但我已经阅读了 infonode 提供的文档和用户手册。但是 coludnt 找到了一种将动态视图添加到根窗口的方法。
这是一个示例代码:
wpf - WPF/MVVM:在同一个 DockPanel 中打开不同的用户控件
我正在DockPanel
为我的布局创建一个应用程序。在“左侧”中,DockPanel
我设置了一些链接(标签),我想UserControls
在单击链接时使用它们打开不同的链接。我希望在UserControls
单击相应链接时始终在“右”DockPanel 中打开。
我将使用 WPF(使用 MVVM)中的什么机制来完成此任务?有没有我可以查看的示例?
wpf - WPF window stretching incorrectly/weird behavior
I've had a weird behavior in WPF for awhile now, and I haven't been able to trace down where the problem is. In a nutshell, when I resize the window from the bottom or right, everything works as expected. But if I happen to grab it from the top or left, it stretches the window bu not the window contents. I've tried playing around wirh HorizontalContentAlignment
, HorizontalAlignment
, VerticalContentAlignment
, & VerticalAlignment
to no avail. Anybody have any ideas where the issue lies?
Resize from Left:
Resize from Top:
Resize from Right/Bottom:
Here's the XAML I'm using, with the inner controls removed for brevity:
Window XAML settings:
Container XAML Settings:
Update: LocationChanged code as requested
Turns out this was the problem, as when I removed the XAML part of it the problem was corrected. I do want to keep this method though, as there's a method that depends upon it to keep ChildWindows
of the MainWindow
locked to the edge. I would like to continue using this if possible.
c# - WPF:如何在 DockPanel 中拉伸中间的孩子?
我向 RadioButton 元素添加了一个 DockPanel,这样我就可以使用 100% 的宽度水平分布单选按钮标签、一个文本框和一个按钮。
LastChildFill="True"
在 DockPanel 中使用会拉伸最后一个元素。如果文本框是面板中的最后一个子项,则效果很好。但是,由于按钮是最后一个元素并且具有固定宽度,因此应该拉伸文本框。但是,没有像2ndChildFill="True"
.
我的代码如下所示:
它给了我这个:
任何想法,提示来解决这个问题?提前谢谢了...
asp.net - 用于 asp.net 网络表单的停靠窗口/面板?
任何人都可以建议第三方供应商,或者我如何在 asp.net 中将 Dock 窗口实现为 Web 表单。与 Visual Studio IDE 类似,能够停靠到侧面以及固定和取消固定的选项。我试过 Telerik,但他们的 Dock 面板只能水平停靠,而不是侧面停靠。
任何建议或链接都会有所帮助。谢谢
c# - WPF Dock 面板布局,顶部的扩展器,底部的 Windows 窗体主机和填充
我试图让我的 Expander 控件出现在我的主页上的 Windows 窗体主机的顶部,并让 Windows 窗体主机填充所有剩余区域。
但是,扩展器出现在它的一侧,而不是顶部。
基本上,这就是我到目前为止所拥有的。我省略了额外的东西。
wpf - 如何让一个控件扩展/填充到最大高度,然后在 WPF 中扩展/填充另一个控件?
我有以下 XAML 源代码来演示我的工作。
我希望,在垂直调整组大小时,让第一个 groupbox 展开,直到其最大高度,然后,当达到最大高度时,展开第三个 groupbox。第三个 groupbox 也有一个 min height 属性。
通常,当我只想扩展单个控件以填充可用空间时,我使用 DockPanel。我已经用各种各样的网格和停靠面板构建了这个示例,但是,我无法解决如何使它工作。关于如何实现它的任何想法?
谢谢
wpf - DockPanel 子项自动宽度
我有这个 Dockpanel:
我尝试添加一些孩子:
输出:
但我想要 7 个宽度相同的孩子。
dock - 关闭 DockContent 文档后的 DisposedObjectException
DockPanelSuite
当我关闭文档时,我看到了如此奇怪的行为。当我单击'X'
文档右上角的关闭时,顶部文档按预期关闭,(calls FormClosing event and Dispose() method of my derived DockContent class)
但文档中仍保留一个小标签。这就像DockContent
意识到应该丢弃内容并放弃所有内部控件,并且 Form.Text 从选项卡中消失了,剩下的是一个没有任何文本的小选项卡。
进一步尝试再次关闭选项卡或单击选项卡会导致'ObjectDisposedException'.
这是我的环境规格:
下面是一个堆栈跟踪。进入代码我可以看到它在尝试获取IDragSource.DragControl
我已经处理的控件的实例时爆炸了
提前感谢您的帮助。
除了这个小问题,我对图书馆非常满意。
c# - 如何在 C# 中写入 Dock 内容
有一个DockPanel
,当我练习此代码时,它会将停靠内容添加到正确的 Dock 但我无法让它显示文本(即执行 Step1 和 Step2 等,如下所示)。我做了很多研究,没有任何工作。在此先感谢您的帮助。