WPF.AA.CustomControls 1.0.6

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

// Install WPF.AA.CustomControls as a Cake Tool
#tool nuget:?package=WPF.AA.CustomControls&version=1.0.6                

WPF.AA.CustomControls

A custom control library for WPF with custom look-less control templates.

Controls

  • GridSplitterPopupExpander
  • NumericUpDown
  • PopupExpander
  • RoundableButton
  • RoundableToggleButton
  • ShowHidePasswordBox
  • WatermarkTextBox
  • ZoomableListBox

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.

image

<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 Compatible and additional computed target framework versions.
.NET net6.0-windows7.0 is compatible.  net7.0-windows was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • 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 156 4/15/2024
1.0.19 120 3/31/2024
1.0.18 103 3/31/2024
1.0.17 114 3/31/2024
1.0.16 102 3/31/2024
1.0.15 102 3/31/2024
1.0.14 115 3/31/2024
1.0.13 116 3/31/2024
1.0.12 119 3/30/2024
1.0.11 108 3/23/2024
1.0.10 115 3/18/2024
1.0.9 135 3/16/2024
1.0.8 110 3/15/2024
1.0.7 128 2/24/2024
1.0.6 132 2/22/2024
1.0.5 185 11/10/2023
1.0.4 135 11/10/2023
1.0.3 136 11/10/2023
1.0.2 191 10/15/2023
1.0.1 145 10/15/2023
1.0.0 139 10/15/2023