ScaleHQ.DotScreen
1.0.0-rc.1
See the version list below for details.
dotnet add package ScaleHQ.DotScreen --version 1.0.0-rc.1
NuGet\Install-Package ScaleHQ.DotScreen -Version 1.0.0-rc.1
<PackageReference Include="ScaleHQ.DotScreen" Version="1.0.0-rc.1" />
paket add ScaleHQ.DotScreen --version 1.0.0-rc.1
#r "nuget: ScaleHQ.DotScreen, 1.0.0-rc.1"
// Install ScaleHQ.DotScreen as a Cake Addin #addin nuget:?package=ScaleHQ.DotScreen&version=1.0.0-rc.1&prerelease // Install ScaleHQ.DotScreen as a Cake Tool #tool nuget:?package=ScaleHQ.DotScreen&version=1.0.0-rc.1&prerelease
DotScreen
DotScreen is library to get information about system screens in applications without dependency on WinForms or WPF.
Primary console/library projects will benefit using this library as they dont want direct dependency on Winforms nor WPF
Class ScaleHQ.DotScreen.Screen.Screen
has almost all properties matching System.Windows.Forms.Screen
.
There is only difference in namespace, instead of System.Windows.Forms
there is ScaleHQ.DotScreen.Screen
.
foreach (var screen in ScaleHQ.DotScreen.Screen.AllScreens)
{
string deviceName = screen.DeviceName;
Rectangle bounds = screen.Bounds;
Rectangle workingArea = screen.WorkingArea;
// rest...
}
In DotScreen there are some additions to Screen
class:
- ScaleFactor (double)
- WorkingAreaScaled (RectangleD)
- BoundsScaled (RectangleD)
- SystemVirtualScreen (Rectangle)
- SystemVirtualScreenScaled (RectangleD)
- MultiMonitorSupport (bool)
- IsProcessDPIAware (bool)
- ...
There is not need to add <UseWPF> or <UseWindowsForms> into project (csproj) file when using DotScreen
Source Code
Github repository.
Remark
This library is port of WpfScreenHelper. It avoids dependencies on Windows Forms and WPF libraries.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net6.0-windows7.0 is compatible. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net7.0-windows7.0 is compatible. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- System.Drawing.Common (>= 7.0.0)
- System.Drawing.Primitives (>= 4.3.0)
-
net6.0-windows7.0
- System.Drawing.Common (>= 7.0.0)
- System.Drawing.Primitives (>= 4.3.0)
-
net7.0-windows7.0
- System.Drawing.Common (>= 7.0.0)
- System.Drawing.Primitives (>= 4.3.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.0-rc.2 | 243 | 1/28/2023 |
1.0.0-rc.1 | 105 | 1/28/2023 |