上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 76 下一页
摘要: //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 阅读(15) 评论(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 阅读(11) 评论(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 阅读(8) 评论(0) 推荐(0) 编辑
摘要: 1.Install Microsoft.Xaml.Behaviors.Wpf from Nuget; 2.Add reference of behavior in view 3.Pass the event to the method located in viewmodel via behavio 阅读全文
posted @ 2024-04-29 14:17 FredGrit 阅读(7) 评论(0) 推荐(0) 编辑
摘要: DataTemplate,Describes the visual structure of a data object. ControlTemplate,Specifies the visual structure and behavioral aspects of a System.Window 阅读全文
posted @ 2024-04-25 00:09 FredGrit 阅读(14) 评论(0) 推荐(0) 编辑
摘要: <Window x:Class="WpfApp68.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/20 阅读全文
posted @ 2024-04-21 22:04 FredGrit 阅读(8) 评论(0) 推荐(0) 编辑
摘要: 1.Remove StartUri="MainWindow.xaml" in App.xaml; 2.In the App.xaml.cs,overrive as below using System; using System.Collections.Generic; using System.C 阅读全文
posted @ 2024-04-20 18:50 FredGrit 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 1.Install livecharts.wpf in nuget 2.usercontrol //xaml <UserControl x:Class="WpfApp64.Bar" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/present 阅读全文
posted @ 2024-04-19 17:03 FredGrit 阅读(49) 评论(0) 推荐(0) 编辑
摘要: WPF Debug Live Visual Tree Right click,show properties,DataContext 阅读全文
posted @ 2024-04-17 00:24 FredGrit 阅读(3) 评论(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-04-17 00:12 FredGrit 阅读(1) 评论(0) 推荐(0) 编辑
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 76 下一页