上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 137 下一页
摘要: 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 阅读(16) 评论(0) 推荐(0)
摘要: //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 阅读(20) 评论(0) 推荐(0)
摘要: //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 阅读(13) 评论(0) 推荐(0)
摘要: //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 阅读(25) 评论(0) 推荐(0)
摘要: 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 阅读(38) 评论(0) 推荐(0)
摘要: public struct XYPoint { public double X { get; set; } public double Y { get; set; } } public MainVM() { LiveCharts.Configure(config => { config.HasMap 阅读全文
posted @ 2025-07-15 23:13 FredGrit 阅读(57) 评论(0) 推荐(0)
摘要: install-package LiveChartsCore.SkiaSharpView.WPF -Version 2.0.0-beta.90 //xaml <Window x:Class="WpfApp3.MainWindow" xmlns="http://schemas.microsoft.co 阅读全文
posted @ 2025-07-15 22:06 FredGrit 阅读(588) 评论(0) 推荐(0)
摘要: //xaml <DataGrid.Columns> <DataGridTemplateColumn> <DataGridTemplateColumn.CellTemplate> <DataTemplate> <Grid ShowGridLines="True" Width="{Binding Dat 阅读全文
posted @ 2025-07-13 20:42 FredGrit 阅读(27) 评论(0) 推荐(0)
摘要: 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)
摘要: <DataGrid.RowStyle> <Style TargetType="DataGridRow"> <Setter Property="Background" Value="{Binding Id,Converter={StaticResource idColorConverter}}"/> 阅读全文
posted @ 2025-07-10 23:16 FredGrit 阅读(23) 评论(0) 推荐(0)
上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 137 下一页