04 2024 档案
摘要://xaml <Window x:Class="WpfApp78.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/w
阅读全文
摘要://xaml <Window x:Class="WpfApp77.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/w
阅读全文
摘要:protected void SetProperty<T>(ref T field,T value, [CallerMemberName] string propName=null) { if(!EqualityComparer<T>.Default.Equals (field, value)) {
阅读全文
摘要:1.Install Microsoft.Xaml.Behaviors.Wpf from Nuget; 2.Add behavior reference in xaml xmlns:behavior="http://schemas.microsoft.com/xaml/behaviors" 3.Pas
阅读全文
摘要: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
阅读全文
摘要:DataTemplate,Describes the visual structure of a data object. ControlTemplate,Specifies the visual structure and behavioral aspects of a System.Window
阅读全文
摘要:<Window x:Class="WpfApp68.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/20
阅读全文
摘要: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
阅读全文
摘要:1.Install livecharts.wpf in nuget 2.usercontrol //xaml <UserControl x:Class="WpfApp64.Bar" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/present
阅读全文
摘要:WPF Debug Live Visual Tree Right click,show properties,DataContext
阅读全文
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System
阅读全文
摘要://xaml <Window x:Class="WpfApp58.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/w
阅读全文
摘要:<DataGrid.ItemContainerStyle> <Style TargetType="{x:Type DataGridRow}"> <Setter Property="FontSize" Value="20"/> <Setter Property="Foreground" Value="
阅读全文
摘要:1.Install package,Microsoft.Xaml.Behaviors.Wpf 2.Add xaml reference in xaml xmlns:behavior="http://schemas.microsoft.com/xaml/behaviors" 3. <behavior:
阅读全文
摘要:<Window x:Class="WpfApp58.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/20
阅读全文
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Net.Http.Headers; using System.Text; using System.Threading.Tasks; usi
阅读全文
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows; using System
阅读全文
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Controls; usi
阅读全文
摘要:1.Red mixed Green generates Yellow 2.Red mixed Blue is purple 3.Green mixed Blue is Cyan
阅读全文
摘要://usercontrol.xaml <UserControl x:Class="WpfControlLibrary1.ColorPicker" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="ht
阅读全文
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Configuration; using
阅读全文
摘要:Powershell [guid]::NewGuid() Command Prompt powershell [guid]::NewGuid()
阅读全文
摘要://xaml <Window x:Class="WpfApp49.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/w
阅读全文
摘要://xaml <Window x:Class="WpfApp48.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/w
阅读全文
摘要:<Window x:Class="WpfApp47.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/20
阅读全文
摘要:<Window x:Class="WpfApp46.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/20
阅读全文
摘要:<Window x:Class="WpfApp45.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/20
阅读全文
摘要://xaml <Window x:Class="WpfApp44.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/w
阅读全文
摘要://xaml <Window x:Class="WpfApp43.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/w
阅读全文
摘要://xaml <Window x:Class="WpfApp42.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/w
阅读全文
摘要:<Window x:Class="WpfApp40.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/20
阅读全文
摘要:using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Sy
阅读全文
摘要://xaml <Window x:Class="WpfApp39.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/w
阅读全文
摘要://the wrong demo var temp = objs as SelectedItemCollection; which will reported error, Error CS0122 'SelectedItemCollection' is inaccessible due to it
阅读全文
摘要:<Window x:Class="WpfApp38.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/20
阅读全文
摘要:<Window x:Class="WpfApp37.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/20
阅读全文
摘要://xaml <Window x:Class="WpfApp37.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/w
阅读全文
摘要://xaml <Window x:Class="WpfApp37.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/w
阅读全文
摘要://xaml <Window x:Class="WpfApp37.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/w
阅读全文
摘要:<ComboBox Grid.Row="0" x:Name="cbx" VirtualizingPanel.VirtualizationMode="Recycling" HorizontalAlignment="Stretch" VerticalContentAlignment="Center" F
阅读全文
摘要:<Window x:Class="WpfApp32.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/20
阅读全文
摘要:<Window x:Class="WpfApp30.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/20
阅读全文
摘要:<Window x:Class="WpfApp28.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/20
阅读全文