定位窗口到屏幕边缘WPF [英] Anchor Window to Screen Edges in WPF
本文介绍了定位窗口到屏幕边缘WPF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经决定,因为从我听到它听起来这将是一个良好的基础,从肌肤写在Visual Studio 2010中我使用WPF去音乐播放器自学C#。
I've decided to teach myself C# by writing a music player in Visual Studio 2010. I went with WPF because from what I hear it sounds like it will be a good base to skin from.
我想我的窗口,如果窗口涉及到一个屏幕的边缘所在的行为(在10px的左右),它会捕捉到屏幕边缘编程。什么是去了解这个
I want to program my window with the behavior where if the window comes to the edge of a screen (within 10px or so) it will snap to the screen edge. What's the best way to go about this?
推荐答案
上找到这里的解决方案通过m1k4的最佳方式:
Found a solution by m1k4 on here:
http://stackoverflow.com/questions/1028024/snapping-sticky-wpf -Windows
这篇关于定位窗口到屏幕边缘WPF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文