04 2024 档案

摘要://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 阅读(16) 评论(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 阅读(41) 评论(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 阅读(28) 评论(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 阅读(33) 评论(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 阅读(10) 评论(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 阅读(18) 评论(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 阅读(24) 评论(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 阅读(6) 评论(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 阅读(66) 评论(0) 推荐(0) 编辑
摘要:WPF Debug Live Visual Tree Right click,show properties,DataContext 阅读全文
posted @ 2024-04-17 00:24 FredGrit 阅读(6) 评论(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 阅读(3) 评论(0) 推荐(0) 编辑
摘要://xaml <Window x:Class="WpfApp58.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/w 阅读全文
posted @ 2024-04-15 20:46 FredGrit 阅读(12) 评论(0) 推荐(0) 编辑
摘要:<DataGrid.ItemContainerStyle> <Style TargetType="{x:Type DataGridRow}"> <Setter Property="FontSize" Value="20"/> <Setter Property="Foreground" Value=" 阅读全文
posted @ 2024-04-15 16:55 FredGrit 阅读(30) 评论(0) 推荐(0) 编辑
摘要:1.Install package,Microsoft.Xaml.Behaviors.Wpf 2.Add xaml reference in xaml xmlns:behavior="http://schemas.microsoft.com/xaml/behaviors" 3. <behavior: 阅读全文
posted @ 2024-04-15 16:47 FredGrit 阅读(50) 评论(0) 推荐(0) 编辑
摘要:<Window x:Class="WpfApp58.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/20 阅读全文
posted @ 2024-04-15 16:13 FredGrit 阅读(25) 评论(0) 推荐(0) 编辑
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Net.Http.Headers; using System.Text; using System.Threading.Tasks; usi 阅读全文
posted @ 2024-04-12 01:39 FredGrit 阅读(10) 评论(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-12 01:04 FredGrit 阅读(10) 评论(0) 推荐(0) 编辑
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Controls; usi 阅读全文
posted @ 2024-04-12 00:22 FredGrit 阅读(5) 评论(0) 推荐(0) 编辑
摘要:1.Red mixed Green generates Yellow 2.Red mixed Blue is purple 3.Green mixed Blue is Cyan 阅读全文
posted @ 2024-04-10 23:58 FredGrit 阅读(5) 评论(0) 推荐(0) 编辑
摘要://usercontrol.xaml <UserControl x:Class="WpfControlLibrary1.ColorPicker" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="ht 阅读全文
posted @ 2024-04-10 23:55 FredGrit 阅读(18) 评论(0) 推荐(0) 编辑
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Configuration; using 阅读全文
posted @ 2024-04-10 11:30 FredGrit 阅读(4) 评论(0) 推荐(0) 编辑
摘要:Powershell [guid]::NewGuid() Command Prompt powershell [guid]::NewGuid() 阅读全文
posted @ 2024-04-10 11:26 FredGrit 阅读(3) 评论(0) 推荐(0) 编辑
摘要://xaml <Window x:Class="WpfApp49.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/w 阅读全文
posted @ 2024-04-09 01:30 FredGrit 阅读(39) 评论(0) 推荐(0) 编辑
摘要://xaml <Window x:Class="WpfApp48.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/w 阅读全文
posted @ 2024-04-08 20:45 FredGrit 阅读(58) 评论(0) 推荐(0) 编辑
摘要:<Window x:Class="WpfApp47.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/20 阅读全文
posted @ 2024-04-08 00:41 FredGrit 阅读(38) 评论(0) 推荐(0) 编辑
摘要:<Window x:Class="WpfApp46.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/20 阅读全文
posted @ 2024-04-08 00:24 FredGrit 阅读(14) 评论(0) 推荐(0) 编辑
摘要:<Window x:Class="WpfApp45.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/20 阅读全文
posted @ 2024-04-08 00:11 FredGrit 阅读(12) 评论(0) 推荐(0) 编辑
摘要://xaml <Window x:Class="WpfApp44.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/w 阅读全文
posted @ 2024-04-07 23:56 FredGrit 阅读(7) 评论(0) 推荐(0) 编辑
摘要://xaml <Window x:Class="WpfApp43.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/w 阅读全文
posted @ 2024-04-07 23:44 FredGrit 阅读(10) 评论(0) 推荐(0) 编辑
摘要://xaml <Window x:Class="WpfApp42.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/w 阅读全文
posted @ 2024-04-07 23:27 FredGrit 阅读(1) 评论(0) 推荐(0) 编辑
摘要:<Window x:Class="WpfApp40.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/20 阅读全文
posted @ 2024-04-07 20:57 FredGrit 阅读(5) 评论(0) 推荐(0) 编辑
摘要:using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Sy 阅读全文
posted @ 2024-04-07 16:31 FredGrit 阅读(10) 评论(0) 推荐(0) 编辑
摘要://xaml <Window x:Class="WpfApp39.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/w 阅读全文
posted @ 2024-04-07 15:54 FredGrit 阅读(15) 评论(0) 推荐(0) 编辑
摘要://the wrong demo var temp = objs as SelectedItemCollection; which will reported error, Error CS0122 'SelectedItemCollection' is inaccessible due to it 阅读全文
posted @ 2024-04-07 14:06 FredGrit 阅读(18) 评论(0) 推荐(0) 编辑
摘要:<Window x:Class="WpfApp38.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/20 阅读全文
posted @ 2024-04-07 01:22 FredGrit 阅读(5) 评论(0) 推荐(0) 编辑
摘要:<Window x:Class="WpfApp37.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/20 阅读全文
posted @ 2024-04-07 00:53 FredGrit 阅读(11) 评论(0) 推荐(0) 编辑
摘要://xaml <Window x:Class="WpfApp37.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/w 阅读全文
posted @ 2024-04-06 22:03 FredGrit 阅读(14) 评论(0) 推荐(0) 编辑
摘要://xaml <Window x:Class="WpfApp37.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/w 阅读全文
posted @ 2024-04-06 21:51 FredGrit 阅读(20) 评论(0) 推荐(0) 编辑
摘要://xaml <Window x:Class="WpfApp37.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/w 阅读全文
posted @ 2024-04-06 21:34 FredGrit 阅读(2) 评论(0) 推荐(0) 编辑
摘要:<ComboBox Grid.Row="0" x:Name="cbx" VirtualizingPanel.VirtualizationMode="Recycling" HorizontalAlignment="Stretch" VerticalContentAlignment="Center" F 阅读全文
posted @ 2024-04-03 14:36 FredGrit 阅读(15) 评论(0) 推荐(0) 编辑
摘要:<Window x:Class="WpfApp32.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/20 阅读全文
posted @ 2024-04-02 21:55 FredGrit 阅读(5) 评论(0) 推荐(0) 编辑
摘要:<Window x:Class="WpfApp30.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/20 阅读全文
posted @ 2024-04-02 20:04 FredGrit 阅读(3) 评论(0) 推荐(0) 编辑
摘要:<Window x:Class="WpfApp28.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/20 阅读全文
posted @ 2024-04-01 00:51 FredGrit 阅读(28) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示