refactor(rules): keep WPF index focused

This commit is contained in:
fraujulian committed 2026-09-24 21:45:25 +02:00
1 parent c91505a568
commit ca9f6296d6
3 files changed
+14 -32

No files matched your search

@@ -1,5 +1,8 @@
## Architecture
* Use modern C# and current WPF conventions. Prefer MVVM for non-trivial views and keep code-behind limited to view-specific behavior.
* Keep UI, application, and domain logic separate. Avoid business logic in views and direct service access from controls.
* Keep dependencies explicit and testable; prefer composition over inheritance and avoid unnecessary abstractions or framework wrappers.
* Keep presentation, application, domain and infrastructure concerns separated.
* Avoid direct database access from views or ViewModels.
* Avoid direct HTTP access from controls.
@@ -28,6 +28,7 @@
## UI Thread
* Treat the UI thread as a scarce resource.
* Keep the interface responsive and do not block the UI thread with I/O or expensive CPU work. Move CPU work off-thread only when needed and marshal UI changes back explicitly.
* Avoid expensive loops, parsing, serialization, database access or network calls on the UI thread.
* Avoid excessive Dispatcher invocations.
* Batch UI updates where practical.