Forms.Wpf.Mls.Tools
1.0.1
See the version list below for details.
dotnet add package Forms.Wpf.Mls.Tools --version 1.0.1
NuGet\Install-Package Forms.Wpf.Mls.Tools -Version 1.0.1
<PackageReference Include="Forms.Wpf.Mls.Tools" Version="1.0.1" />
paket add Forms.Wpf.Mls.Tools --version 1.0.1
#r "nuget: Forms.Wpf.Mls.Tools, 1.0.1"
// Install Forms.Wpf.Mls.Tools as a Cake Addin #addin nuget:?package=Forms.Wpf.Mls.Tools&version=1.0.1 // Install Forms.Wpf.Mls.Tools as a Cake Tool #tool nuget:?package=Forms.Wpf.Mls.Tools&version=1.0.1
Forms.Wpf.Mls.Tools
This library will help your Windows Forms and WPF apps with usefull tools (services and controls).
Services:
AssemblyProperties - Ready to use Exe/dll properties
It has simple to use properties. Now it has only 5, but more will be added in the future. One example:
var appIcon = AssemblyProperties.AssemblyIcon;
EscapeCloses - On ESC keyboard pressed closes Window/Form
Easy to use service to close Window/Form on keyboard key press button ESC
Shortcuts - Methods for creating shortcut
Easy to create shortcut with one line. It has also Startup Shortcut - ready to use method to add shortcut to users startup folder.
Shortcuts.CreateShortcut(exePath, lnkPath);
SizePositioning - Save Window/Form position and size on the monitor
It's not the standard way with project's resource properties. This uses json. Serialize on close and deserialize on load. To use it you need only this line:
SizePositioning.AssignForm(this);
or
SizePositioning.AssignWindow(this);
SpecialFolders - Windows' special folders
It has simple to use properties. Now it has only 5, but more will be added in the future. One example 'C:\ProgramData':
var progData = SpecialFolders.CommonAppData;
Controls:
SystemTray - Adding NotifyIcon control to Window/Form
This adds icon in the Windows taskbar system tray. It has default context menu that you can replace with your own. It also has - close app to the tray icon and doble click opens back the app.
var SystemIcon = new SystemTray(form);
chBxSystemTray.CheckedChanged += delegate { SystemIcon.Visibility = chBxSystemTray.Checked; };
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. net9.0-windows was computed. |
-
net6.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.