05 2022 档案
摘要:长久以来DispatcherPriority对我都有种神秘的色彩,因为我甚至不知道如何“真正”的使用它。 一.执行原理 使用Dispatcher.BeginInvoke的时候,其中一个参数便是要指定合适的DispatcherPriority。之前当设置这个参数的时候我往往凭着感觉或是穷举——一种一个
阅读全文
摘要:C# 中一般重启exe程序有以下三种方法: 方法一:使用Restart()方法 System.Windows.Forms.Application.Restart(); Application.Current.Shutdown(); // 方法二:使用System.Diagnostics.Proces
阅读全文
摘要:正常编写: <TextBlock > <Run Text="F"></Run> <Run Text="60"></Run> <Run Text="五4"></Run> </TextBlock> 显示结果如下图: 处理后代码: <TextBlock > <Run Text="F"></Run><Run
阅读全文