摘要: //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)