AirspaceFixer 1.0.6

dotnet add package AirspaceFixer --version 1.0.6                
NuGet\Install-Package AirspaceFixer -Version 1.0.6                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="AirspaceFixer" Version="1.0.6" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add AirspaceFixer --version 1.0.6                
#r "nuget: AirspaceFixer, 1.0.6"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install AirspaceFixer as a Cake Addin
#addin nuget:?package=AirspaceFixer&version=1.0.6

// Install AirspaceFixer as a Cake Tool
#tool nuget:?package=AirspaceFixer&version=1.0.6                

Airspace Fixer

AirspaceFixer is a small lightweight project that only contains a single control - AirspacePanel.

If you've ever had to host any WinForms forms inside a WPF project, you might know about the dreaded Airspace problem. Basically, the WinForms control must always be on top. Even if you try to put a modal dialog on top of the WinForms control, this Airspace issue forces the WinForms control on top.

Now, you may be thinking, WinForms, gross, I'll never do that, well, me too, but I had to use the WebBrowser control recently, and since it's a legacy control (made in WinForms), the same Airspace problem applies.

AirspacePanel aims to fix this problem by allowing you to host any content you like inside of it, and swapping out the content for a screenshot of the content when you need to place a modal dialog on top of it. This swap is done by using the dependency property FixAirspace. Here's an example -

xmlns:asf="clr-namespace:AirspaceFixer;assembly=AirspaceFixer"

<asf:AirspacePanel FixAirspace="{Binding FixAirspace}">
    <WebBrowser x:Name="Browser" />
</asf:AirspacePanel>

See the sample app for more info on how to use it.

AirspaceFixer is also available in Nuget to include as a package.

Product Compatible and additional computed target framework versions.
.NET net6.0-windows7.0 is compatible.  net7.0-windows was computed.  net8.0-windows was computed. 
.NET Framework net452 is compatible.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on AirspaceFixer:

Repository Stars
BornToBeRoot/NETworkManager
A powerful tool for managing networks and troubleshoot network problems!
Version Downloads Last updated
1.0.6 73,468 5/27/2022
1.0.5 23,096 2/13/2018
1.0.4 1,088 1/22/2018
1.0.3 2,439 10/12/2017
1.0.2 1,561 3/20/2017
1.0.1 1,112 2/9/2017
1.0.0 1,257 11/23/2016

Upgraded to build for both NET 6 and NET Framework 4.5.2+