会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
FredGrit
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
27
28
29
30
31
32
33
34
35
···
137
下一页
2025年7月11日
WPF datagrid keydown with customized behavior and implemented in mvvm
摘要: public class DataGridKeyDownBehavior : Behavior<DataGrid> { public ICommand Command { get => (ICommand)GetValue(CommandProperty); set => SetValue(Comm
阅读全文
posted @ 2025-07-11 22:17 FredGrit
阅读(23)
评论(0)
推荐(0)
2025年7月10日
WPF DataGridRow background based on id group and converter
摘要: <DataGrid.RowStyle> <Style TargetType="DataGridRow"> <Setter Property="Background" Value="{Binding Id,Converter={StaticResource idColorConverter}}"/>
阅读全文
posted @ 2025-07-10 23:16 FredGrit
阅读(23)
评论(0)
推荐(0)
2025年7月5日
WPF .net8 use WinForm's Dundas chart
摘要: install-package Microsoft.Windows.Compatibility install-package System.Windows.Forms -version 4.0.0.0 install-package System.Data.SqlClient --version
阅读全文
posted @ 2025-07-05 20:45 FredGrit
阅读(68)
评论(0)
推荐(0)
WPF .net8 use Dundas chart of System.Windows.Forms
摘要: install-package Microsoft.Windows.Compatibility install-package System.Windows.Forms -version 4.0.0.0 install-package System.Data.SqlClient --version
阅读全文
posted @ 2025-07-05 19:55 FredGrit
阅读(70)
评论(0)
推荐(0)
2025年6月29日
WPF ListBox ScrollViewer get scrolled current item actual vertical position in the whole scrollview of listbox via mvvm
摘要: <i:Interaction.Triggers> <i:EventTrigger EventName="PreviewMouseWheel"> <i:InvokeCommandAction Command="{Binding MouseWheelCommand}" CommandParameter=
阅读全文
posted @ 2025-06-29 22:06 FredGrit
阅读(74)
评论(0)
推荐(0)
WPF ListBox mvvm contextmenu pass all and multiple items
摘要: <MenuItem Header="Export All" Command="{Binding ExportAllCommand}" CommandParameter="{Binding RelativeSource={RelativeSource Mode=FindAncestor,Ancesto
阅读全文
posted @ 2025-06-29 20:51 FredGrit
阅读(38)
评论(0)
推荐(0)
2025年6月17日
WPF TextBlock Run BaselineAlignment Baseline,Bottom,Center,SubScript,SuperScript,TextBottom,TextTop,Top
摘要: <Window x:Class="WpfApp40.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/20
阅读全文
posted @ 2025-06-17 15:21 FredGrit
阅读(53)
评论(0)
推荐(0)
2025年6月12日
WPF DatagridRow set width and background in mvvm,DataGridTextColumn wrap
摘要: <Setter Property="Width" Value="{Binding DataContext.RowWidth, RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type Window}}, Mode=Tw
阅读全文
posted @ 2025-06-12 23:36 FredGrit
阅读(36)
评论(0)
推荐(0)
WPF Display Math number square, show big character and small character via Textblock run horizontal without space BaselineAlignment="Baseline" BaselineAlignment="Subscript"
摘要: //xaml <Window x:Class="WpfApp37.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/w
阅读全文
posted @ 2025-06-12 10:56 FredGrit
阅读(25)
评论(0)
推荐(0)
2025年6月8日
WPF ListBox MVVM command export to excel,csv and json include all and multiply selected
摘要: install-package system.text.json install-package epplus //all //xaml <Window x:Class="WpfApp35.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2
阅读全文
posted @ 2025-06-08 20:46 FredGrit
阅读(48)
评论(0)
推荐(0)
上一页
1
···
27
28
29
30
31
32
33
34
35
···
137
下一页
公告