csharpdeeb25a2 | 1 | using Avalonia.Controls; |
| 2 | |
| 3 | namespace CascadeIDE.Views; |
| 4 | |
| 5 | public partial class SettingsWindow : PointerTrackingWindow |
| 6 | { |
| 7 | public SettingsWindow() |
| 8 | { |
| 9 | InitializeComponent(); |
| 10 | var btn = this.FindControl<Button>("CloseButton"); |
| 11 | if (btn is not null) |
| 12 | btn.Click += (_, _) => Close(); |
| 13 | } |
| 14 | } |
| 15 | |
View only · write via MCP/CIDE