摘要: 在上一个博客中增加一个RelayCommand.cs,然后在User1ViewModel.cs中增加一个BtnCommand,最后在User1.xaml中绑定Command="{Binding BtnCommand}"这个命令。 using System; using System.Collecti 阅读全文
posted @ 2022-08-09 17:33 阿坦 阅读(68) 评论(0) 推荐(0)
摘要: public static class Singleton<T> where T : new() { // Use ConcurrentDictionary for thread safety. private static ConcurrentDictionary<Type, T> _instan 阅读全文
posted @ 2022-08-09 17:02 阿坦 阅读(134) 评论(0) 推荐(0)