摘要: //xaml <Window x:Class="WpfApp78.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/w 阅读全文
posted @ 2024-04-30 19:45 FredGrit 阅读(11) 评论(0) 推荐(0) 编辑
摘要: //xaml <Window x:Class="WpfApp77.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/w 阅读全文
posted @ 2024-04-30 18:30 FredGrit 阅读(33) 评论(0) 推荐(0) 编辑
摘要: protected void SetProperty<T>(ref T field,T value, [CallerMemberName] string propName=null) { if(!EqualityComparer<T>.Default.Equals (field, value)) { 阅读全文
posted @ 2024-04-30 14:45 FredGrit 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 1.Install Microsoft.Xaml.Behaviors.Wpf from Nuget; 2.Add behavior reference in xaml xmlns:behavior="http://schemas.microsoft.com/xaml/behaviors" 3.Pas 阅读全文
posted @ 2024-04-30 13:56 FredGrit 阅读(16) 评论(0) 推荐(0) 编辑