
WPF Control Using
一阵没来由的风
It doesn't even matter
展开
-
WPF 子窗口跟随主窗口移动
由于LocationChanged的事件参数中没有记录历史的窗口位置信息,因此为了得到当前窗口与移动之前的窗口位置变化情况,需要添加lastTop和lastLeft记录上一次窗口位置情况,然后以此来计算偏差时。原创 2025-03-10 09:52:10 · 222 阅读 · 0 评论 -
WPF Popup Using
WPF Popup Using 示例 Popup控件由两部分组成:呈现弹起内容的Popup控件和触发该Popup的控件组成。下面我们以toggleButton和Popup组合起来做一个浮窗效果。 <Window x:Class="Deamon.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com原创 2020-06-02 19:49:18 · 664 阅读 · 0 评论