AirspaceFixer 1.0.6
dotnet add package AirspaceFixer --version 1.0.6
NuGet\Install-Package AirspaceFixer -Version 1.0.6
<PackageReference Include="AirspaceFixer" Version="1.0.6" />
paket add AirspaceFixer --version 1.0.6
#r "nuget: AirspaceFixer, 1.0.6"
// 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 | Versions 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. |
-
.NETFramework 4.5.2
- Microsoft.CSharp (>= 4.7.0)
- Microsoft.Windows.Compatibility (>= 6.0.0)
-
net6.0-windows7.0
- Microsoft.CSharp (>= 4.7.0)
- Microsoft.Windows.Compatibility (>= 6.0.0)
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!
|
Upgraded to build for both NET 6 and NET Framework 4.5.2+