摘要: private BitmapImage ConvertBitmapToBitmapImage(System.Drawing.Bitmap bitmap) { BitmapImage bmi = new BitmapImage(); using (MemoryStream ms = new Memor 阅读全文
posted @ 2024-11-22 00:43 FredGrit 阅读(5) 评论(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 阅读(2) 评论(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 阅读(1) 评论(0) 推荐(0) 编辑
摘要: public class ListBoxAutoScrollBehavior : Behavior<ListBox> { protected override void OnAttached() { AssociatedObject.SelectionChanged += AssociatedObj 阅读全文
posted @ 2024-11-19 23:39 FredGrit 阅读(6) 评论(0) 推荐(0) 编辑
摘要: <DataGrid.ContextMenu> <ContextMenu> <MenuItem Header="Export" Command="{Binding ExportCommand}" CommandParameter="{Binding RelativeSource={RelativeSo 阅读全文
posted @ 2024-11-19 00:48 FredGrit 阅读(3) 评论(0) 推荐(0) 编辑
摘要: <DataGridTemplateColumn Header="Image"> <DataGridTemplateColumn.CellTemplate> <DataTemplate> <StackPanel Orientation="Horizontal"> <CheckBox IsThreeSt 阅读全文
posted @ 2024-11-18 23:24 FredGrit 阅读(5) 评论(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 阅读(2) 评论(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 阅读(2) 评论(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 阅读(3) 评论(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 阅读(2) 评论(0) 推荐(0) 编辑