Jon.Wpf.CustomControls 1.65.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package Jon.Wpf.CustomControls --version 1.65.0
NuGet\Install-Package Jon.Wpf.CustomControls -Version 1.65.0
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="Jon.Wpf.CustomControls" Version="1.65.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Jon.Wpf.CustomControls --version 1.65.0
#r "nuget: Jon.Wpf.CustomControls, 1.65.0"
#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.
// Install Jon.Wpf.CustomControls as a Cake Addin
#addin nuget:?package=Jon.Wpf.CustomControls&version=1.65.0

// Install Jon.Wpf.CustomControls as a Cake Tool
#tool nuget:?package=Jon.Wpf.CustomControls&version=1.65.0

Jon.WPF.CustomControls

Welcome to Jon.WPF.CustomControls, a .NET 7.0 WPF C# custom control library. This library aims to provide an assortment of WPF controls to enhance your application's user interface.

Banner

New WizardControl

WizardScreen

Coming Soon Terminal Control

TerminalControl

Table of Contents

About

Jon.WPF.CustomControls is a collection of custom, reusable WPF controls. It is built with .NET 7.0 and intended to provide developers with controls that are commonly used but not included in the standard WPF toolkit.

Getting Started

  1. Clone the repo: git clone https://github.com/yourusername/Jon.WPF.CustomControls.git
  2. Open the solution in Visual Studio 2023 or later.
  3. Build the solution to ensure everything is set up correctly.
  4. Start using the controls in your projects!

Usage

Reference the Jon.WPF.CustomControls.dll in your WPF project. You can now use the controls by adding the appropriate namespace to your XAML files.

xmlns:custom="clr-namespace:Jon.WPF.CustomControls;assembly=Jon.WPF.CustomControls"

You can then use the controls like any other WPF control:

<custom:NumericUpDown x:Name="MyNumericUpDown" />

Controls

This library currently includes the following controls:

  • NumericUpDown: A NumericUpDown control that allows users to increase or decrease a numeric value with up and down buttons. NEW
  • WizardControl: A control that presents a series of WizardPages to assist the user in performing a task or series of tasks. NEW
  • WizardPage: A page within a WizardControl that contains content to guide the user through a specific part of the task. NEW
  • RgbColorPicker: A color picker control that allows users to select a color using RGB (Red, Green, Blue) components.
  • ColorPaletteControl: A color palette control that provides a grid of colors for the user to choose from.
  • RatingControl: A control for rating items on a scale.
  • TimePicker: A time selection control.
  • ToggleSwitch: A binary selection control, similar to a checkbox, but with a sleek design.
  • WatermarkTextbox: A text box with a placeholder text feature, also known as watermark.
  • PropertyGrid: A control for displaying and editing the properties of an object.
  • Coming Soon:
    • CollectionControlDialog - View List or Observable Collection in a dialog window. Each can open up a separate property grid dialog.
    • Range Slider - Two bar slider where a range can be selected.

Please refer to each control's documentation for more details.

Remember to create the corresponding `WizardControl

Converters

Converters are used in WPF to transform data from one type to another. They are often used in data binding scenarios, where the source data may not be in the correct format for the target property. Here are the converters included in this library:

  • BoolToIntConverter: Converts a boolean value to an integer. Typically used for scenarios where a boolean value needs to be represented as an integer.
  • BoolToTranslateConverter: Converts a boolean value to a translation transform. Useful for moving UI elements based on a boolean condition.
  • BoolToVisibilityConverter: Converts a boolean value to a Visibility enumeration. Commonly used to show or hide UI elements based on a boolean condition.
  • BoolToCollapsedConverter: Similar to BoolToVisibilityConverter, but collapses the UI element when the boolean is false.
  • ToggleSwitchForegroundConverter: Used specifically for the ToggleSwitch control to determine the foreground color based on the switch's state.
  • ToggleSwitchBackgroundConverter: Used specifically for the ToggleSwitch control to determine the background color based on the switch's state.
  • ToggleSwitchHandleColorConverter: Used specifically for the ToggleSwitch control to determine the handle color based on the switch's state.
  • ColorToBrushConverter: Converts a Color to a Brush. Useful for binding scenarios where a Brush is required but the source is a Color.
  • BrushToColorConverter: Converts a Brush to a Color. Useful for binding scenarios where a Color is required but the source is a Brush.
  • HalfSizeConverter: Takes a size and returns half of it. Useful for positioning or sizing elements relative to others.
  • DateTimeToAmPmConverter: Converts a DateTime to a string representing either "AM" or "PM".
  • SelectorValuesToDateTimeConverter: Converts selector values to a DateTime. Used in the TimePicker control.
  • ColorEqualityConverter: Checks if two colors are equal. Useful for color comparison scenarios.
  • ColorToNameConverter: Converts a Color to its name as a string, if it has one.
  • PropertyNameConverter: Converts a property name to a more user-friendly format.

Converters

Please note that the exact behavior of each converter may depend on its implementation and usage in the controls.

Contributing

We welcome contributions from everyone. If you have controls that are not already in this toolkit and would like to help make them available to others, also welcome. I'd love to build this out to include a wide variety of reusable tools. Before you start, please see the CONTRIBUTING.md for details on how to contribute to this project.

License

This project is licensed under the MIT License. For more information, see the LICENSE file.

Contact

If you have any questions, feel free to reach out to us. You can contact us via email or create an issue on our GitHub page. We'll do our best to respond as quickly as possible.

Product Compatible and additional computed target framework versions.
.NET net6.0-windows7.0 is compatible.  net7.0-windows was computed.  net7.0-windows7.0 is compatible.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
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
2.33.0 717 6/30/2023
2.32.0 560 6/24/2023
2.31.0 590 6/19/2023
2.2.0 590 6/14/2023
2.1.0 570 6/11/2023
2.0.0 573 6/4/2023
1.99.0 578 6/2/2023
1.98.0 611 5/31/2023
1.97.0 567 5/29/2023
1.96.0 575 5/29/2023
1.95.0 556 5/28/2023
1.94.0 579 5/27/2023
1.93.0 583 5/25/2023
1.92.0 581 5/23/2023
1.91.0 563 5/23/2023
1.81.0 585 5/22/2023
1.80.0 580 5/22/2023
1.79.0 577 5/22/2023
1.78.0 608 5/21/2023
1.77.0 608 5/21/2023
1.76.0 599 5/21/2023
1.74.0 583 5/21/2023
1.72.0 600 5/20/2023
1.71.0 581 5/20/2023
1.70.0 592 5/20/2023
1.65.0 570 5/18/2023
1.61.0 612 5/17/2023
1.9.0 551 5/23/2023
1.6.0 586 5/17/2023
1.5.0 684 5/16/2023
1.3.0 576 5/16/2023
1.2.0 580 5/15/2023
1.1.0 575 5/15/2023
1.0.0 569 5/15/2023

Seperated theme logic for default styles.