上一页 1 2 3 4 5 6 7 8 ··· 120 下一页
摘要: Install-Package Prism.DryIOC; Install-Package Prism.Wpf; //BookModule using BookModule.Services; using BookModule.ViewModels; using BookModule.Views; 阅读全文
posted @ 2025-10-02 16:46 FredGrit 阅读(8) 评论(0) 推荐(0)
摘要: Install-Package Prism.Wpf; Install-Package Prism.Unity; public class ViewBViewModel:BindableBase { ITimeService timeService; IGuidService guidService; 阅读全文
posted @ 2025-09-30 16:36 FredGrit 阅读(8) 评论(0) 推荐(0)
摘要: 1. Platform Invocation (P/Invoke) Set C++ project as dll, compile, copy compiled c++ dll to C# bin/debug matched location //C++ // ConsoleApplication1 阅读全文
posted @ 2025-09-30 10:57 FredGrit 阅读(10) 评论(0) 推荐(0)
摘要: Install-Package Prism.Unity; Install-Package Prism.Wpf; //D:\C\WpfApp20\WpfApp20\App.xaml <prism:PrismApplication x:Class="WpfApp20.App" xmlns="http:/ 阅读全文
posted @ 2025-09-29 21:15 FredGrit 阅读(5) 评论(0) 推荐(0)
摘要: An Attached Property is a special, XAML-centric concept that is, under the hood, a Dependency Property. It allows a child element to specify a value f 阅读全文
posted @ 2025-09-29 18:52 FredGrit 阅读(8) 评论(0) 推荐(0)
摘要: Install-Package Wpf.Prism; private void SaveAsJpgCommandExecuted() { var dpi=VisualTreeHelper.GetDpi(this); RenderTargetBitmap rtb=new RenderTargetBit 阅读全文
posted @ 2025-09-28 14:27 FredGrit 阅读(10) 评论(0) 推荐(0)
摘要: //Window.xaml <Window x:Class="WpfApp15.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsof 阅读全文
posted @ 2025-09-27 21:54 FredGrit 阅读(29) 评论(0) 推荐(0)
摘要: private void SaveTriangleAsPicture() { if (triangle == null) { MessageBox.Show("No triangle to save!"); return; } try { SaveFileDialog dialog = new Sa 阅读全文
posted @ 2025-09-27 21:06 FredGrit 阅读(9) 评论(0) 推荐(0)
摘要: private void DrawTriangleInCanvas() { try { triangle = new Polygon() { Stroke = Brushes.Black, StrokeThickness = 3, Fill = Brushes.Red }; double heigh 阅读全文
posted @ 2025-09-27 20:45 FredGrit 阅读(4) 评论(0) 推荐(0)
摘要: Install-Package Prism.DryIOC; Install-Package Prism.Wpf;Install-Package Microsoft.Xaml.Behaviors.WPF; //App.xaml <prism:PrismApplication x:Class="WpfA 阅读全文
posted @ 2025-09-27 18:53 FredGrit 阅读(11) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 120 下一页