Avalonia UI Click-Through Toggle C#

Job ID: 39966387

Budget: €8 – €30 EUR

I have a C# Avalonia 11 project and need a window that can switch, at runtime, between two modes:

1. Pass-through – every interaction should be ignored so the underlying application or desktop receives the event.
2. Normal – the window behaves like any standard Avalonia window, processing all input.

The switch must be controlled solely by a simple boolean property I set in code (getter, setter).

Cross-platform behaviour is required (Windows, Linux). The window may already be transparent, so the solution can't break existing transparency or blur settings.

Deliverables
• A small, self-contained Avalonia solution (MS Visual Studio and VSCode buildable) demonstrating the toggle in action
• Re-usable code (helper class, attached behaviour, or extension method) that I can drop into other projects
• Short README that lists any required window styles, platform flags, or known limitations

Acceptance criteria: when I flip the boolean at runtime, clicks fall through immediately; when I reset it, the window regains focus and resumes normal interaction, with no visual flicker.

I will first test on different supported Windows versions, then on Linux. If the first test fails, I will not continue to the second one.
Non-AI generated bids will be preferred.

Possibly useful information:

What have I tried ?
https://stackoverflow.com/questions/69599437/transparency-and-click-through-in-avalonia
https://github.com/AvaloniaUI/Avalonia/discussions/13827

The code will later be open source.