Cogs.Wpf 1.25.0

.NET 5.0 .NET Core 3.1 .NET Framework 4.8
Install-Package Cogs.Wpf -Version 1.25.0
dotnet add package Cogs.Wpf --version 1.25.0
<PackageReference Include="Cogs.Wpf" Version="1.25.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Cogs.Wpf --version 1.25.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Cogs.Wpf, 1.25.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Cogs.Wpf as a Cake Addin
#addin nuget:?package=Cogs.Wpf&version=1.25.0

// Install Cogs.Wpf as a Cake Tool
#tool nuget:?package=Cogs.Wpf&version=1.25.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

This library includes utilities for Windows Presentation Foundation, including:

  • ActionCommand - a command that can be manipulated by its caller
  • ControlAssist - provides attached dependency properties to enhance the functionality of controls (e.g. AdditionalInputBindings)
  • Screen - represents a display device or multiple display devices on a single system
  • WindowAssist - provides attached dependency properties to enhance the functionality of windows (e.g. AutoActivation, BlurBehind, IsBlurredBehind, IsCaption, SendSystemCommand, SetDefaultWindowStyleOnSystemCommands, ShowSystemMenu)

Also includes extension methods for visuals:

  • GetVisualAncestor - gets the first ancestor of a reference in the Visual Tree, or <c>null</c> if none could be found
  • GetVisualDescendent - gets the first member of a Visual Tree descending from a reference, or <c>null</c> if none could be found

Also includes extension methods for windows:

  • IsInSafePosition - gets whether the specified window is completely contained within the closest working area
  • SafeguardPosition - moves the specified window the minimum amount to be completely contained within the closest working area

Also includes behaviors:

  • ComboBoxDataVirtualization & ListBoxDataVirtualization - sets the items source of a combo box or list box (including list views), respectively, to a collection that loads elements as they are needed for display and keeps selected elements loaded (requires .NET Core 3.1 or later)
  • DelayedFocus - focuses an element after a specified delay
  • DeselectAllOnEmptySpaceClicked - feselects all items when empty space in a list view is clicked
  • OpenNavigateUri - opens the Hyperlink's NavigateUri when it is clicked
  • PasswordBindingTarget - allows binding to PasswordBox.Password

Also includes controls:

  • UrlAwareTextBlock - provides a lightweight control for displaying small amounts of flow content which finds URLs and makes them clickable hyperlinks

Also includes input gestures:

  • MouseWheelDownGesture - defines a mouse wheel down gesture that can be used to invoke a command
  • MouseWheelUpGesture - defines a mouse wheel up gesture that can be used to invoke a command

Also includes validation rules:

  • InvalidCharactersValidationRule - provides a way to create a rule in order to check that user input does not contain any invalid characters
  • StringNotEmptyValidationRule - provides a way to create a rule in order to check that user input is not an empty string
  • ValidFileNameValidationRule - provides a way to create a rule in order to check that user input does not contain any invalid file name characters
  • ValidPathValidationRule - provides a way to create a rule in order to check that user input does not contain any invalid file system path characters

Also includes a wide array of value converters. Please see a package explorer for details.

Product Versions
.NET net5.0 net5.0-windows net5.0-windows7.0 net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
.NET Core netcoreapp3.1
.NET Framework net48
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

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.25.0 73 5/16/2022
1.24.2 78 4/4/2022
1.24.1 70 3/23/2022
1.24.0 73 3/19/2022
1.23.2 142 12/16/2021
1.23.1 122 12/16/2021
1.23.0 164 11/19/2021
1.22.1 148 11/3/2021
1.22.0 179 10/31/2021
1.21.0 148 10/13/2021
1.20.1 162 10/1/2021
1.20.0 139 10/1/2021
1.19.0 185 4/9/2021
1.18.0 160 4/5/2021
1.17.0 193 3/24/2021
1.16.0 214 3/11/2021
1.15.0 177 3/10/2021
1.14.0 202 3/10/2021
1.13.0 189 3/10/2021
1.12.0 219 3/5/2021
1.11.0 147 3/5/2021
1.10.0 158 3/5/2021
1.9.0 149 3/4/2021
1.8.0 214 2/28/2021
1.7.1 191 2/24/2021
1.7.0 148 2/21/2021
1.6.1 169 2/16/2021
1.6.0 167 2/16/2021
1.5.1 156 2/16/2021
1.5.0 178 2/16/2021
1.4.0 158 2/15/2021
1.3.0 150 2/15/2021
1.2.0 145 2/12/2021
1.1.0 158 2/12/2021
1.0.2 170 2/9/2021
1.0.1 161 2/8/2021
1.0.0 171 2/8/2021

We added the Xaml static class, which allows syntactically simplified Xaml parsing. We also improved data virtualization.