Jon.Wpf.CustomControls
1.61.0
See the version list below for details.
dotnet add package Jon.Wpf.CustomControls --version 1.61.0
NuGet\Install-Package Jon.Wpf.CustomControls -Version 1.61.0
<PackageReference Include="Jon.Wpf.CustomControls" Version="1.61.0" />
paket add Jon.Wpf.CustomControls --version 1.61.0
#r "nuget: Jon.Wpf.CustomControls, 1.61.0"
// Install Jon.Wpf.CustomControls as a Cake Addin #addin nuget:?package=Jon.Wpf.CustomControls&version=1.61.0 // Install Jon.Wpf.CustomControls as a Cake Tool #tool nuget:?package=Jon.Wpf.CustomControls&version=1.61.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.
New WizardControl
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
- Clone the repo:
git clone https://github.com/yourusername/Jon.WPF.CustomControls.git
- Open the solution in Visual Studio 2023 or later.
- Build the solution to ensure everything is set up correctly.
- 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 aVisibility
enumeration. Commonly used to show or hide UI elements based on a boolean condition.BoolToCollapsedConverter
: Similar toBoolToVisibilityConverter
, but collapses the UI element when the boolean isfalse
.ToggleSwitchForegroundConverter
: Used specifically for theToggleSwitch
control to determine the foreground color based on the switch's state.ToggleSwitchBackgroundConverter
: Used specifically for theToggleSwitch
control to determine the background color based on the switch's state.ToggleSwitchHandleColorConverter
: Used specifically for theToggleSwitch
control to determine the handle color based on the switch's state.ColorToBrushConverter
: Converts aColor
to aBrush
. Useful for binding scenarios where aBrush
is required but the source is aColor
.BrushToColorConverter
: Converts aBrush
to aColor
. Useful for binding scenarios where aColor
is required but the source is aBrush
.HalfSizeConverter
: Takes a size and returns half of it. Useful for positioning or sizing elements relative to others.DateTimeToAmPmConverter
: Converts aDateTime
to a string representing either "AM" or "PM".SelectorValuesToDateTimeConverter
: Converts selector values to aDateTime
. Used in theTimePicker
control.ColorEqualityConverter
: Checks if two colors are equal. Useful for color comparison scenarios.ColorToNameConverter
: Converts aColor
to its name as a string, if it has one.PropertyNameConverter
: Converts a property name to a more user-friendly format.
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 | Versions 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. |
-
net6.0-windows7.0
- Microsoft.Xaml.Behaviors.Wpf (>= 1.1.39)
-
net7.0-windows7.0
- Microsoft.Xaml.Behaviors.Wpf (>= 1.1.39)
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 | 886 | 6/30/2023 |
2.32.0 | 605 | 6/24/2023 |
2.31.0 | 626 | 6/19/2023 |
2.2.0 | 628 | 6/14/2023 |
2.1.0 | 607 | 6/11/2023 |
2.0.0 | 609 | 6/4/2023 |
1.99.0 | 621 | 6/2/2023 |
1.98.0 | 654 | 5/31/2023 |
1.97.0 | 614 | 5/29/2023 |
1.96.0 | 611 | 5/29/2023 |
1.95.0 | 594 | 5/28/2023 |
1.94.0 | 614 | 5/27/2023 |
1.93.0 | 634 | 5/25/2023 |
1.92.0 | 613 | 5/23/2023 |
1.91.0 | 601 | 5/23/2023 |
1.81.0 | 617 | 5/22/2023 |
1.80.0 | 619 | 5/22/2023 |
1.79.0 | 615 | 5/22/2023 |
1.78.0 | 645 | 5/21/2023 |
1.77.0 | 647 | 5/21/2023 |
1.76.0 | 648 | 5/21/2023 |
1.74.0 | 629 | 5/21/2023 |
1.72.0 | 640 | 5/20/2023 |
1.71.0 | 615 | 5/20/2023 |
1.70.0 | 626 | 5/20/2023 |
1.65.0 | 609 | 5/18/2023 |
1.61.0 | 655 | 5/17/2023 |
1.9.0 | 591 | 5/23/2023 |
1.6.0 | 626 | 5/17/2023 |
1.5.0 | 723 | 5/16/2023 |
1.3.0 | 610 | 5/16/2023 |
1.2.0 | 616 | 5/15/2023 |
1.1.0 | 607 | 5/15/2023 |
1.0.0 | 608 | 5/15/2023 |
Seperated theme logic for default styles.