WPF窗口表单的应用方法 [英] WPF Window form application methods

查看:57
本文介绍了WPF窗口表单的应用方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hi all

<pre lang="c#">



谁能告诉我,WPF中的拖动和移动方法是什么???????(我在不支持最小化,最大化和移动方法的窗口中使用无样式方法)

谢谢.....



can anyone tell me, what are the drag and move methods in WPF??????(i use in window none style method it doesn''t support minimized,maximized and move methods)

thanks.....

推荐答案

我不认为您在谈论WPF中的拖放(如果这样做,您会发现很大文档中的小节,并附有很好的介绍性文章).据我了解,使用无"样式,您只是失去了通常用于拖动的标题栏.因此,您需要为窗口鼠标事件实现适当的处理程序.这很简单;您只需要应用一些逻辑即可进行设计.

尝试在最简单的示例项目上进行操作.如果无法完成,请显示您的代码(使用上面的改进问题")以获取更多帮助.

—SA
I don''t think you are talking about drag-n-drop in WPF (if you do, you will find a big section in documentation, with good introductory article). As I understand, with None style, you simply lost the title bar normally used for dragging. Therefore, you need to implement appropriate handlers for the window mouse events. This is pretty simple; you only need to apply some logic to design it.

Try to do it on a simplest sample project. If you fail to complete it, please show your code (use "Improve question" above) to get more help.

—SA


这篇关于WPF窗口表单的应用方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆