会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
FredGrit
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
7
8
9
10
11
12
13
14
15
···
120
下一页
2025年8月19日
SqlSugar SQLLite last modified time set in attribute with InsertServerTime
摘要: [SugarColumn(ColumnDescription = "Last Modified Time",IsNullable = false,InsertServerTime = true)] public DateTime LastModifiedTime { get; set; }
阅读全文
posted @ 2025-08-19 11:23 FredGrit
阅读(6)
评论(0)
推荐(0)
2025年8月18日
WPF LiveChartsCore.SkiaSharpView.WPF Line and scatter points, save as jpg
摘要: Install-Package LiveChartsCore.SkiaSharpView.WPF -version 2.0.0-rc5.4 //xaml <Window x:Class="WpfApp44.MainWindow" xmlns="http://schemas.microsoft.com
阅读全文
posted @ 2025-08-18 17:02 FredGrit
阅读(28)
评论(0)
推荐(0)
WPF Canvas simulate molecule Brown motion
摘要: <Canvas Background="Black"> <ItemsControl ItemsSource="{Binding Molecules}"> <ItemsControl.ItemsPanel> <ItemsPanelTemplate> <Canvas/> </ItemsPanelTemp
阅读全文
posted @ 2025-08-18 14:51 FredGrit
阅读(7)
评论(0)
推荐(0)
WPF Canvas ItemsControl ItemsContainerStyle Canvas.Left Canvas.Top ItemTemplace RenderTargetBitmap VisualDrawing DrawContext DrawRectangle JpegBitmapEncoder
摘要: <Canvas> <ItemsControl ItemsSource="{Binding ElpsCollection,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <ItemsControl.ItemsPanel> <ItemsPanelTe
阅读全文
posted @ 2025-08-18 14:21 FredGrit
阅读(4)
评论(0)
推荐(0)
2025年8月15日
WPF Save ItemsControl canvas as jpg via RenderTargetBitmap,DrawingVisual,DrawingContext,VisualBrush, DrawRectangle,JpegBitmapEncoder
摘要: <ItemsControl ItemsSource="{Binding ElpsCollection}"> <ItemsControl.ItemsPanel> <ItemsPanelTemplate> <Canvas Background="White"/> </ItemsPanelTemplate
阅读全文
posted @ 2025-08-15 22:41 FredGrit
阅读(9)
评论(0)
推荐(0)
WPF save Framework as Jpg via RenderTargetBitmap, DrawingVisual, DrawingContext, RenderTargetBitamp.Render(DrawingVisual), JpegBitmapEncoder Frame Add BitmapFrame Create(rendertargetbitmap)
摘要: private void SaveFrameworkElementAsJpg(FrameworkElement fe, string jpgFilePath, int dpi = 96) { var size = new Size(fe.ActualWidth, fe.ActualHeight);
阅读全文
posted @ 2025-08-15 18:57 FredGrit
阅读(8)
评论(0)
推荐(0)
2025年8月13日
WPF TreeView HierarchicalDataTemplate
摘要: <TreeView ItemsSource="{Binding BooksGroupList,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <TreeView.ItemTemplate> <HierarchicalDataTemplate It
阅读全文
posted @ 2025-08-13 17:28 FredGrit
阅读(24)
评论(0)
推荐(0)
WPF datagrid expander and group by group name
摘要: <DataGrid ItemsSource="{Binding BooksGroupList,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" AutoGenerateColumns="False" ColumnWidth="*" HeadersVi
阅读全文
posted @ 2025-08-13 16:32 FredGrit
阅读(11)
评论(0)
推荐(0)
C# prevent pc sleeping escepially for long running task via invoking SetThreadExecutionState from kernel32.dll
摘要: using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace ConsoleApp10 { internal class Program { [DllImport("kernel32.dl
阅读全文
posted @ 2025-08-13 13:46 FredGrit
阅读(10)
评论(0)
推荐(0)
2025年8月10日
WPF Prism RegionManager Navigate
摘要: install-package prism.core; install-package Prism.DryIoc; install-package prism.wpf; //app.xaml <prism:PrismApplication x:Class="WpfApp31.App" xmlns="
阅读全文
posted @ 2025-08-10 22:07 FredGrit
阅读(14)
评论(0)
推荐(0)
上一页
1
···
7
8
9
10
11
12
13
14
15
···
120
下一页
公告