会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
奇迹之耀
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
8
9
10
11
12
13
14
15
16
下一页
2021年12月1日
WPF设置一个透明窗体,鼠标可以透过窗体点击下面的东西
摘要: 前台 <Window x:Class="hittest.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/
阅读全文
posted @ 2021-12-01 15:09 奇迹之耀
阅读(269)
评论(1)
推荐(0)
2021年11月29日
WPF richtextbox行间距异常,过大
摘要: 在richtextbox中添加 <RichTextBox.Resources> <Style TargetType="{x:Type Paragraph}"> <Setter Property="Margin" Value="0"/> </Style> </RichTextBox.Resources
阅读全文
posted @ 2021-11-29 11:01 奇迹之耀
阅读(389)
评论(0)
推荐(0)
2021年11月23日
WPF Dispatcher.Invoke和Dispatcher.BeginInvoke执行顺序
摘要: Dispatcher.Invoke是同步执行 Dispatcher.Invoke(new Action(() => { stackPanel.Children.Add(new TextBlock() { Text = "1" }); })); stackPanel.Children.Add(new
阅读全文
posted @ 2021-11-23 19:08 奇迹之耀
阅读(432)
评论(0)
推荐(0)
2021年10月29日
ffmpeg录屏时太模糊怎么办
摘要: 使用cmd命令行录制的可以加入参数-qscale 取值范围是0.01-255,设置的数值越小,则越清晰 下面是我录制时使用的命令行 string command = "ffmpeg -f gdigrab -framerate 20 -video_size 1920*1080 -i desktop -
阅读全文
posted @ 2021-10-29 10:43 奇迹之耀
阅读(410)
评论(0)
推荐(0)
2021年10月27日
在WPF中使用winform控件
摘要: 后台代码 WindowsFormsHost host = new WindowsFormsHost(); System.Windows.Forms.PictureBox picture = new System.Windows.Forms.PictureBox(); host.Child = pic
阅读全文
posted @ 2021-10-27 10:43 奇迹之耀
阅读(69)
评论(0)
推荐(0)
2021年10月14日
WPF在richtextbox上添加滚动条
摘要: 效果: 源代码点我下载
阅读全文
posted @ 2021-10-14 11:00 奇迹之耀
阅读(249)
评论(0)
推荐(0)
WPF值转换器
摘要: 总是记不住,放上来方便复制 单个参数 [ValueConversion(typeof(int), typeof(string))] public class SexConverter : IValueConverter { public object Convert(object value, Ty
阅读全文
posted @ 2021-10-14 10:23 奇迹之耀
阅读(76)
评论(0)
推荐(0)
2021年10月13日
WPF,计算绘制一段文字需要多少宽度
摘要: private double GetTextWidth(string text) { var textBlock = new System.Windows.Controls.TextBlock { Text = text, TextWrapping = TextWrapping.NoWrap, Fo
阅读全文
posted @ 2021-10-13 09:56 奇迹之耀
阅读(171)
评论(0)
推荐(0)
2021年9月17日
WPF全局禁用tab键选中控件
摘要: 在主窗体添加键盘点击事件 private void Window_PreviewKeyDown(object sender, KeyEventArgs e) { Key key = (e.Key == Key.System ? e.SystemKey : e.Key); if (key == Key
阅读全文
posted @ 2021-09-17 14:26 奇迹之耀
阅读(227)
评论(0)
推荐(0)
2021年9月14日
C# 以颜色的代码的形式实例化SolidColorBrush
摘要: SolidColorBrush solidColorBrush = new SolidColorBrush((Color)ColorConverter.ConvertFromString("#2D5073"));
阅读全文
posted @ 2021-09-14 08:45 奇迹之耀
阅读(264)
评论(0)
推荐(0)
上一页
1
···
8
9
10
11
12
13
14
15
16
下一页
公告