摘要: //xaml <Window x:Class="WpfApp299.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/ 阅读全文
posted @ 2024-08-28 21:37 FredGrit 阅读(21) 评论(0) 推荐(0)
摘要: //xaml <Window x:Class="WpfApp302.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/ 阅读全文
posted @ 2024-08-28 18:05 FredGrit 阅读(27) 评论(0) 推荐(0)
摘要: //xaml <Window x:Class="WpfApp299.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/ 阅读全文
posted @ 2024-08-28 16:37 FredGrit 阅读(70) 评论(0) 推荐(0)
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System 阅读全文
posted @ 2024-08-28 15:44 FredGrit 阅读(19) 评论(0) 推荐(0)
摘要: Task.Run(() => { InitData(); }); The calling thread must be STA, because many UI components require this. The solution is make sure current method in 阅读全文
posted @ 2024-08-28 14:32 FredGrit 阅读(39) 评论(0) 推荐(0)