会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
FredGrit
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
8
9
10
11
12
13
14
15
16
···
120
下一页
2025年8月7日
WPF save canvas as pictures via rendetargetbitmap DrawingVisual DrawingContext VisualBrush
摘要: //xaml <Window x:Class="WpfApp27.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/w
阅读全文
posted @ 2025-08-07 20:54 FredGrit
阅读(13)
评论(0)
推荐(0)
2025年8月6日
WPF ellipse rotate in mvvm DoubleAnimation,RotateTransform.AngleProperty press enter run and others pause,then press enter resume from paused angle
摘要: //xaml <Window x:Class="WpfApp26.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/w
阅读全文
posted @ 2025-08-06 17:28 FredGrit
阅读(16)
评论(0)
推荐(0)
2025年8月3日
WPF datagrid cell vertical center, cell auto adapt to data cell width,alternationcount ItemsControl.AlternationIndex
摘要: //datagrid cell verticalalignment center <DataGrid.CellStyle> <Style TargetType="DataGridCell"> <Setter Property="VerticalContentAlignment" Value="Cen
阅读全文
posted @ 2025-08-03 22:04 FredGrit
阅读(19)
评论(0)
推荐(0)
WPF Navigator bar mainwindow mainpage subviews image button main frame navigate
摘要: //mainwindow.xaml <Window x:Class="WpfApp23.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.micr
阅读全文
posted @ 2025-08-03 19:31 FredGrit
阅读(13)
评论(0)
推荐(0)
2025年8月1日
WPF datagrid export all data as multiple images
摘要: //Ensures that all visual child elements of this element are properly updated for layout. dataGrid.UpdateLayout(); //xaml <Window x:Class="WpfApp21.Ma
阅读全文
posted @ 2025-08-01 22:22 FredGrit
阅读(7)
评论(0)
推荐(0)
2025年7月30日
wpf get datagrid actual width and height beyond screen with scrollviewer
摘要: public double GetDatagridActualWidth(DataGrid dg) { double totalWidth = 0; foreach(var col in dg.Columns) { totalWidth += col.ActualWidth; } return to
阅读全文
posted @ 2025-07-30 19:46 FredGrit
阅读(9)
评论(0)
推荐(0)
2025年7月26日
WPF canvas plot sin and cos function
摘要: //xaml <Window x:Class="WpfApp11.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/w
阅读全文
posted @ 2025-07-26 14:36 FredGrit
阅读(7)
评论(0)
推荐(0)
2025年7月19日
WPF ListBox populated by another project dll and no block UI
摘要: //xaml <Window x:Class="WpfApp9.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/wi
阅读全文
posted @ 2025-07-19 14:07 FredGrit
阅读(5)
评论(0)
推荐(0)
2025年7月18日
WPF get actual DPI both in x and y via PresentationSource.FromVisual TransformToDevice Matrix
摘要: //xaml <Window x:Class="WpfApp8.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/wi
阅读全文
posted @ 2025-07-18 19:47 FredGrit
阅读(9)
评论(0)
推荐(0)
2025年7月16日
WPF livechars2 draw sin function
摘要: install-package LiveChartsCore.SkiaSharpView.WPF -Version 2.0.0-beta.90 public MainVM() { LiveCharts.Configure(config => { config.HasMap<XYPoint>((poi
阅读全文
posted @ 2025-07-16 21:28 FredGrit
阅读(11)
评论(0)
推荐(0)
上一页
1
···
8
9
10
11
12
13
14
15
16
···
120
下一页
公告