如何在 WPF 窗口状态栏上创建拖动拇指?
我想我可能正在寻找太简单的答案,但在 WinForms 中,StatusBar 在右侧有一个拇指,这允许用户更快地调整表单大小,而无需尝试抓住边框。
我正在 WPF 中寻找一个简单的内置解决方案,它可以在视觉上和功能上复制此内容,从而调整整个 WPF 窗口的大小。一直在谷歌搜索,但它总是关闭
关于 StatusBar 类的 MSDN 文章实际上显示了一个带有拇指的图像,但默认情况下 StatusBar 上没有拇指。
MSDN 文章: http:// msdn.microsoft.com/en-us/library/system.windows.controls.primitives.statusbar(v=VS.85).aspx
带有拇指的状态栏图像: http://i.msdn.microsoft.com/dynimg/IC19326.gif
I suppose I might be looking for too simple an answer, but in WinForms, the StatusBar had a thumb on the right hand side, that allowed the user to resize the form quicker without having to try and grab the border.
I am looking for a simple built in solution in WPF which replicates this visually and functionally that will resize the entire WPF Window. Been googling but it's always off
The MSDN article on the StatusBar class actually shows an image with a thumb on in, but by default there is no thumb on the StatusBar.
MSDN article:
http://msdn.microsoft.com/en-us/library/system.windows.controls.primitives.statusbar(v=VS.85).aspx
Statusbar image with thumb on it:
http://i.msdn.microsoft.com/dynimg/IC19326.gif
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您来自 WinForms,这有点违反直觉,但解决方案非常简单,只需使用
Window.ResizeMode
:无论有没有状态栏,都可以使用。
这里有一篇文章提供了更多信息:
It's a little counter-intuitive if you're coming from WinForms but the solution is very simple by using
Window.ResizeMode
:This works with or without a status bar.
Here's an article with more information: