摘要: private Window? GetWindow() { foreach (Window win in Application.Current.Windows) { if (win.DataContext==this) { return win; } } return null; } Instal 阅读全文
posted @ 2025-09-19 20:06 FredGrit 阅读(12) 评论(0) 推荐(0)
摘要: <Button Content="Custom Button" Background="Gold" FontSize="30" Grid.Column="0" BorderBrush="Green" BorderThickness="5"> <Button.Template> <ControlTem 阅读全文
posted @ 2025-09-19 10:16 FredGrit 阅读(14) 评论(0) 推荐(0)