![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
WPF
zsz139
这个作者很懒,什么都没留下…
展开
-
WPF Inkcanvas 电子白板保存图片添加背景色
原始图片点击 保存 按钮生成的图片Inkcanvas 绘制后保存图片(jpe、png)经常是没有背景的,如何添加背景色下面代码可以实现:1、BitmapSource 扩展方法,给图片添加背景色public static BitmapSource ReplaceTransparency(this BitmapSource bitmap, Color color) { var rect = new Rect(0, 0, bitmap.PixelWi...原创 2020-11-03 09:44:34 · 1653 阅读 · 1 评论 -
WPF 隐藏Hyperlink下划线
WPF 动态隐藏Hyperlink下划线mainwindow.xaml<Window x:Class="MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/e...原创 2020-10-10 11:27:43 · 779 阅读 · 0 评论 -
WPF DispatcherTimer
WPF DispatcherTimer无论是否通过调用Start()或者将IsEnabled设置为true,DispatcherTimer总是重新开始计时。 如果你希望计时器从间隔中间恢复,你将需要实现该计时器。如WPF中希望鼠标移动显示某些内容,停止移动一段时间后(如5s)显示的内容隐藏 DispatcherTimer delayTimer = null; public void OpGridHiddenDealyTime(int time) ...原创 2020-08-17 17:46:38 · 756 阅读 · 0 评论