MultiScreen.Core 1.2.5

dotnet add package MultiScreen.Core --version 1.2.5
                    
NuGet\Install-Package MultiScreen.Core -Version 1.2.5
                    
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="MultiScreen.Core" Version="1.2.5" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MultiScreen.Core" Version="1.2.5" />
                    
Directory.Packages.props
<PackageReference Include="MultiScreen.Core" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add MultiScreen.Core --version 1.2.5
                    
#r "nuget: MultiScreen.Core, 1.2.5"
                    
#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.
#:package MultiScreen.Core@1.2.5
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=MultiScreen.Core&version=1.2.5
                    
Install as a Cake Addin
#tool nuget:?package=MultiScreen.Core&version=1.2.5
                    
Install as a Cake Tool

MultiScreen.Core

多显示器窗体定位类库(WPF / WinForms)。本仓库为私有源码;对外仅通过 NuGet 提供编译包。

安装

<PackageReference Include="MultiScreen.Core" Version="1.2.5" />

项目需启用 WPF 和/或 WinForms:

<UseWPF>true</UseWPF>
<UseWindowsForms>true</UseWindowsForms>

放置模式

模式 说明
Maximize 先定位到目标屏再最大化(默认)
Center 保持尺寸,在目标屏工作区居中
RestoreBounds 应用指定 bounds,可夹紧到工作区

屏幕索引从 0 开始。

使用示例

using MultiScreen;

// WPF
var win = new Window { Width = 800, Height = 600 };
win.MoveToScreen(1, ScreenPlacement.Maximize);
win.Show();

// WinForms
var form = new Form { Width = 800, Height = 600 };
form.MoveToScreen(1, ScreenPlacement.Maximize);
form.Show();

更多用法见源码注释。版权所有,未经许可不得公开再分发源码。

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.  net8.0-windows7.0 is compatible.  net9.0-windows was computed.  net9.0-windows7.0 is compatible.  net10.0-windows was computed.  net10.0-windows7.0 is compatible. 
.NET Framework net48 is compatible.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.8

    • No dependencies.
  • net10.0-windows7.0

    • No dependencies.
  • net6.0-windows7.0

    • No dependencies.
  • net8.0-windows7.0

    • No dependencies.
  • net9.0-windows7.0

    • No dependencies.

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.2.5 104 7/29/2026