WPF.AA.CustomControls
1.0.13
See the version list below for details.
dotnet add package WPF.AA.CustomControls --version 1.0.13
NuGet\Install-Package WPF.AA.CustomControls -Version 1.0.13
<PackageReference Include="WPF.AA.CustomControls" Version="1.0.13" />
paket add WPF.AA.CustomControls --version 1.0.13
#r "nuget: WPF.AA.CustomControls, 1.0.13"
// Install WPF.AA.CustomControls as a Cake Addin #addin nuget:?package=WPF.AA.CustomControls&version=1.0.13 // Install WPF.AA.CustomControls as a Cake Tool #tool nuget:?package=WPF.AA.CustomControls&version=1.0.13
WPF.AA.CustomControls
A custom control library for WPF with custom look-less control templates.
Controls
- ColorPicker
- ColorSlider
- GridSplitterPopupExpander
- NumericUpDown
- PopupExpander
- RoundableButton
- RoundableToggleButton
- ShowHidePasswordBox
- WatermarkTextBox
- ZoomableListBox
Please check out the wiki for more information on each control.
ColorPicker
A color picker control that can be utilized in WPF applications. Uses HSV color space math rather than sampling bitmaps for color accuracy. There is a reason for this...please see wiki for more information.
GridSplitterPopupExpander Example
Behaves like the AvalonDock side auto popup window, except that it cannot be ripped out or pinned.
Check out my MainWindow in my VTOL VR Mission Assitant for an example.
<GridSplitterPopupExpander ExpandDirection="Up" PopupContentMinimumHeight="100"
PopupBoundsElement="{Binding ElementName=innerMainGrid}"
Background="#FF2F2F2F" Foreground="#FFFFFFFF"
GridSplitterBackground="#FF007BFF"
Header="{Binding Translations.Warnings, FallbackValue=Warnings}">
Fairly simple to implement. PopupBoundsElement should be some kind of root Grid or Border. This is used for positioning and sizing data. This property is required!
Translation Curiosity
Curious about what I am doing for translations and how I can bind to translated strings? Check out my WPF transations API, WPF.Translations.
NumericUpDown
The NumericUpDown control is really easy to use but a couple of things to cover. First, the ValueType property...
The ValueType property specifies the type of data for the Value property. You can set Integer, Decimal or Double. This value is used behind the scenes to convert the values to the appropriate numeric type so comparisons and assignments can occur properly.
Secondly, the ValueFormat property...
The ValueFormat property is the StringFormat used in the binding to the Value property.
<cc:NumericUpDown ValueType="Double" ValueFormat="N2" />
<cc:NumericUpDown />
As you can see it is very easy to use. However you can setup a UX that is confusing by not properly utilizing the two aforementioned properties. Meaning, you can set the ValueType to Integer then set the ValueFormat to N2 (or whatever) and get 2 decimal places on your display. As a developer you can set that up but don't. If you are using the N# format then use Decimal or Double. It is also recommended to use Decimal over Double is most situations. The control will not try to add a decimal if one should be there for display, such as in the case of double or decimal data types. The problem is the developers to manage by specifying a ValueFormat.
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. |
-
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.
Version | Downloads | Last updated |
---|---|---|
1.0.20 | 153 | 4/15/2024 |
1.0.19 | 117 | 3/31/2024 |
1.0.18 | 100 | 3/31/2024 |
1.0.17 | 111 | 3/31/2024 |
1.0.16 | 99 | 3/31/2024 |
1.0.15 | 99 | 3/31/2024 |
1.0.14 | 112 | 3/31/2024 |
1.0.13 | 113 | 3/31/2024 |
1.0.12 | 116 | 3/30/2024 |
1.0.11 | 105 | 3/23/2024 |
1.0.10 | 112 | 3/18/2024 |
1.0.9 | 132 | 3/16/2024 |
1.0.8 | 107 | 3/15/2024 |
1.0.7 | 125 | 2/24/2024 |
1.0.6 | 129 | 2/22/2024 |
1.0.5 | 182 | 11/10/2023 |
1.0.4 | 132 | 11/10/2023 |
1.0.3 | 133 | 11/10/2023 |
1.0.2 | 188 | 10/15/2023 |
1.0.1 | 142 | 10/15/2023 |
1.0.0 | 136 | 10/15/2023 |