11 2024 档案

摘要://usercontrol.cs using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; 阅读全文
posted @ 2024-11-29 00:59 FredGrit 阅读(4) 评论(0) 推荐(0) 编辑
摘要:public class DataGridAutoScrollBehavior:Behavior<DataGrid> { protected override void OnAttached() { base.OnAttached(); AssociatedObject.SelectionChang 阅读全文
posted @ 2024-11-26 22:54 FredGrit 阅读(10) 评论(0) 推荐(0) 编辑
摘要://uercontrol <UserControl x:Class="WpfApp47.ImgTbk" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsof 阅读全文
posted @ 2024-11-26 22:46 FredGrit 阅读(11) 评论(0) 推荐(0) 编辑
摘要://xaml <Window x:Class="WpfApp45.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/w 阅读全文
posted @ 2024-11-24 21:43 FredGrit 阅读(5) 评论(0) 推荐(0) 编辑
摘要://usercontrol //xaml <UserControl x:Class="WpfApp44.ImgTbk" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas. 阅读全文
posted @ 2024-11-24 21:10 FredGrit 阅读(5) 评论(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-11-24 16:56 FredGrit 阅读(6) 评论(0) 推荐(0) 编辑
摘要:private BitmapImage ConvertBitmapToBitmapImage(System.Drawing.Bitmap bitmap) { BitmapImage bmi = new BitmapImage(); using (MemoryStream ms = new Memor 阅读全文
posted @ 2024-11-22 00:43 FredGrit 阅读(12) 评论(0) 推荐(0) 编辑
摘要:<Window x:Class="WpfApp39.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/20 阅读全文
posted @ 2024-11-22 00:40 FredGrit 阅读(30) 评论(0) 推荐(0) 编辑
摘要:1.Install SVG the third party software tool from nuget; 2. using System; using System.Collections.Generic; using System.Drawing.Imaging; using System. 阅读全文
posted @ 2024-11-22 00:07 FredGrit 阅读(3) 评论(0) 推荐(0) 编辑
摘要:public class ListBoxAutoScrollBehavior : Behavior<ListBox> { protected override void OnAttached() { AssociatedObject.SelectionChanged += AssociatedObj 阅读全文
posted @ 2024-11-19 23:39 FredGrit 阅读(11) 评论(0) 推荐(0) 编辑
摘要:<DataGrid.ContextMenu> <ContextMenu> <MenuItem Header="Export" Command="{Binding ExportCommand}" CommandParameter="{Binding RelativeSource={RelativeSo 阅读全文
posted @ 2024-11-19 00:48 FredGrit 阅读(22) 评论(0) 推荐(0) 编辑
摘要:<DataGridTemplateColumn Header="Image"> <DataGridTemplateColumn.CellTemplate> <DataTemplate> <StackPanel Orientation="Horizontal"> <CheckBox IsThreeSt 阅读全文
posted @ 2024-11-18 23:24 FredGrit 阅读(9) 评论(0) 推荐(0) 编辑
摘要:<Style TargetType="{x:Type Control}" x:Key="lbxStyle"> <Style.Triggers> <Trigger Property="ItemsControl.AlternationIndex" Value="0"> <Setter Property= 阅读全文
posted @ 2024-11-17 16:39 FredGrit 阅读(25) 评论(0) 推荐(0) 编辑
摘要:<Window x:Class="WpfApp33.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/20 阅读全文
posted @ 2024-11-17 15:39 FredGrit 阅读(4) 评论(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-11-17 15:06 FredGrit 阅读(7) 评论(0) 推荐(0) 编辑
摘要:using System.Security.Cryptography; using System.Text.Unicode; namespace ConsoleApp4 { internal class Program { static void Main(string[] args) { stri 阅读全文
posted @ 2024-11-16 19:07 FredGrit 阅读(5) 评论(0) 推荐(0) 编辑
摘要:namespace ConsoleApp4 { internal class Program { static void Main(string[] args) { string bigFile = @"C:\Users\fred\Downloads\ebook-master.zip"; ReadB 阅读全文
posted @ 2024-11-16 18:56 FredGrit 阅读(38) 评论(0) 推荐(0) 编辑
摘要:public class ListBoxAutoScrollBehavior:Behavior<ListBox> { protected override void OnAttached() { base.OnAttached(); AssociatedObject.SelectionChanged 阅读全文
posted @ 2024-11-05 22:57 FredGrit 阅读(12) 评论(0) 推荐(0) 编辑
摘要:<StackPanel.Resources> <Style x:Key="btnStyle" TargetType="{x:Type Button}"> <Setter Property="Button.FontSize" Value="50"/> <Setter Property="Button. 阅读全文
posted @ 2024-11-03 19:05 FredGrit 阅读(8) 评论(0) 推荐(0) 编辑
摘要://xaml <Window.Resources> <local:SizeConverter x:Key="sizeConverter"/> <local:BooksData x:Key="booksData"/> </Window.Resources> <Grid> <DataGrid Grid. 阅读全文
posted @ 2024-11-03 17:37 FredGrit 阅读(3) 评论(0) 推荐(0) 编辑
摘要:public class DelCommand : ICommand { public event EventHandler CanExecuteChanged { add { CommandManager.RequerySuggested += value; } remove { CommandM 阅读全文
posted @ 2024-11-03 17:18 FredGrit 阅读(5) 评论(0) 推荐(0) 编辑
摘要:<DataGrid ItemsSource="{Binding BooksCollection,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" CanUserAddRows="False" AutoGenerateColumns="False" S 阅读全文
posted @ 2024-11-03 15:41 FredGrit 阅读(10) 评论(0) 推荐(0) 编辑

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