会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
FredGrit
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
29
30
31
32
33
34
35
36
37
···
139
下一页
2025年6月29日
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
阅读(54)
评论(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
阅读(27)
评论(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
阅读(49)
评论(0)
推荐(0)
2025年6月7日
WPF Datagrid mvvm contextmenu menuitem command commandparameter binding to selecteditems
摘要: <MenuItem Header="Remove Book" Command="{Binding RemoveBookCommand}" CommandParameter="{Binding RelativeSource={RelativeSource Mode=FindAncestor, Ance
阅读全文
posted @ 2025-06-07 21:55 FredGrit
阅读(60)
评论(0)
推荐(0)
2025年6月2日
WPF datagridrow isreadonly binding to id include converter and mvvm
摘要: <Window.Resources> <local:IdToEnableConverter x:Key="IdToEnableConverter"/> <local:DgRowBgColorConverter x:Key="DgRowBgColorConverter"/> <Style x:Key=
阅读全文
posted @ 2025-06-02 19:24 FredGrit
阅读(27)
评论(0)
推荐(0)
2025年5月31日
WPF DatagridTextColumn width set via Header style and behavior
摘要: <DataGrid.Columns> <DataGridTextColumn Binding="{Binding Id}" Header="Id"/> <DataGridTextColumn Binding="{Binding Name}" Header="Name"/> <DataGridText
阅读全文
posted @ 2025-05-31 19:37 FredGrit
阅读(45)
评论(0)
推荐(0)
2025年5月28日
WPF mainwindow show data and edit window edit data, share the same viewmodel
摘要: //main.xaml <Window x:Class="WpfApp235.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft
阅读全文
posted @ 2025-05-28 00:58 FredGrit
阅读(41)
评论(0)
推荐(0)
2025年5月27日
C# convert SelectedItemCollection to list, convert System.Windows.Control.ItemCollection to list()
摘要: private void ExportSelectedCmdExecuted(object? obj) { //SelectedItemCollection var selectedBooksList = ((System.Collections.IList)obj).Cast<Book>()?.T
阅读全文
posted @ 2025-05-27 00:42 FredGrit
阅读(57)
评论(0)
推荐(0)
上一页
1
···
29
30
31
32
33
34
35
36
37
···
139
下一页
公告