上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 137 下一页
摘要: install-package CommunityToolkit.Mvvm; //usercontrol <UserControl x:Class="WpfApp49.UCRotatedElp" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/ 阅读全文
posted @ 2025-08-20 15:00 FredGrit 阅读(17) 评论(0) 推荐(0)
摘要: //usercontrol //xaml <UserControl x:Class="WpfApp48.UCRotatedElp" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://sc 阅读全文
posted @ 2025-08-20 11:41 FredGrit 阅读(22) 评论(0) 推荐(0)
摘要: private void SaveAsJPGCommandExecuted(object? obj) { var fe = obj as FrameworkElement; if (fe!=null) { SaveFrameworkElementAsJpg(fe); } } private void 阅读全文
posted @ 2025-08-19 22:56 FredGrit 阅读(19) 评论(0) 推荐(0)
摘要: Install-Package Microsoft.Xaml.Behaviors.Wpf //xaml <Window x:Class="WpfApp46.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presenta 阅读全文
posted @ 2025-08-19 18:14 FredGrit 阅读(69) 评论(0) 推荐(0)
摘要: [SugarColumn(ColumnDescription = "Last Modified Time",IsNullable = false,InsertServerTime = true)] public DateTime LastModifiedTime { get; set; } 阅读全文
posted @ 2025-08-19 11:23 FredGrit 阅读(13) 评论(0) 推荐(0)
摘要: 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 阅读(93) 评论(0) 推荐(0)
摘要: <Canvas Background="Black"> <ItemsControl ItemsSource="{Binding Molecules}"> <ItemsControl.ItemsPanel> <ItemsPanelTemplate> <Canvas/> </ItemsPanelTemp 阅读全文
posted @ 2025-08-18 14:51 FredGrit 阅读(17) 评论(0) 推荐(0)
摘要: <Canvas> <ItemsControl ItemsSource="{Binding ElpsCollection,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <ItemsControl.ItemsPanel> <ItemsPanelTe 阅读全文
posted @ 2025-08-18 14:21 FredGrit 阅读(14) 评论(0) 推荐(0)
摘要: <ItemsControl ItemsSource="{Binding ElpsCollection}"> <ItemsControl.ItemsPanel> <ItemsPanelTemplate> <Canvas Background="White"/> </ItemsPanelTemplate 阅读全文
posted @ 2025-08-15 22:41 FredGrit 阅读(21) 评论(0) 推荐(0)
摘要: 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 阅读(21) 评论(0) 推荐(0)
上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 137 下一页