Russkyc.ModernControls.WPF
1.3.2
Prefix Reserved
See the version list below for details.
dotnet add package Russkyc.ModernControls.WPF --version 1.3.2
NuGet\Install-Package Russkyc.ModernControls.WPF -Version 1.3.2
<PackageReference Include="Russkyc.ModernControls.WPF" Version="1.3.2" />
paket add Russkyc.ModernControls.WPF --version 1.3.2
#r "nuget: Russkyc.ModernControls.WPF, 1.3.2"
// Install Russkyc.ModernControls.WPF as a Cake Addin #addin nuget:?package=Russkyc.ModernControls.WPF&version=1.3.2 // Install Russkyc.ModernControls.WPF as a Cake Tool #tool nuget:?package=Russkyc.ModernControls.WPF&version=1.3.2
Russkyc.ModernControls.WPF
A highly customizable custom control library for wpf
Version | Package Name |
---|---|
Russkyc.ModernControls.WPF |
What sets this apart from the default WPF controls?
The default wpf control library is awesome when it comes to ui customization, but theres only one problem --you need to write a handful of style setters, dependency properties, and triggers to have a truly customized control. Which is why Russkyc.ModernControls.WPF is created. It saves you from having to write all of the style, templates, and triggers by providing controls that have high customizabilty all using properties. Perfect for quick and easy UI Development.
Setup
Add the following to App.xaml. Order is Important!
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/Russkyc.ModernControls.WPF;component/Themes/ColorThemes/Default.xaml" />
<ResourceDictionary Source="pack://application:,,,/Russkyc.ModernControls.WPF;component/Themes/Generic.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
Add the following to your window
xmlns:russkyc="clr-namespace:org.russkyc.moderncontrols;assembly=Russkyc.ModernControls.WPF"
Sample Usage
<russkyc:ModernButton Width="70" Text="Modern Button" />
A Taste of ModernControls Customization
<moderncontrols:ModernButton Width="70"
CornerRadius="5"
FontWeight="SemiBold"
HoverBackground="#3d88ff"
HoverForeground="#7BFFA3"
PressedBackground="#1F5ABD"
PressedForeground="#FFBE46"
Text="Modern Button" />
Control Library
- ModernTextBox
- ModernButton
- ModernToggleButton
- ModernRadio
- ModernRadioButton
- ModernComboBox
- ModernAutocompleteBox
API Reference
Complete API Reference in Github Repository
Background/Foreground is not updating on click/hover, what to do?
DO:
Set the
DefaultBackground
orDefaultForeground
property instead of the Background and Foreground property to change the default state color.
DO NOT:
Set the
Background
andForeground
property directly.
WHY?
WPF has very strict style precedence rules, setting the Background and Foreground property on the controls directly will break the hover / click / check / pressed color functionality since it will supercede all colors set by the control and make the properties unmodifiable to the control template.
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
- Bindables.Wpf (>= 1.4.0)
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.2.3 | 282 | 10/12/2023 |
2.2.2 | 131 | 10/12/2023 |
2.2.1 | 132 | 10/12/2023 |
2.0.8 | 297 | 9/8/2023 |
2.0.4 | 191 | 8/11/2023 |
2.0.3 | 168 | 8/11/2023 |
2.0.2-pre | 125 | 8/11/2023 |
1.9.18 | 520 | 6/6/2023 |
1.7.1 | 268 | 5/1/2023 |
1.6.1 | 182 | 4/28/2023 |
1.6.0 | 162 | 4/28/2023 |
1.5.2 | 186 | 4/18/2023 |
1.5.1 | 210 | 4/18/2023 |
1.5.1-dev | 129 | 4/15/2023 |
1.5.0 | 190 | 4/14/2023 |
1.4.2 | 182 | 4/6/2023 |
1.4.0 | 205 | 4/4/2023 |
1.3.2 | 180 | 4/3/2023 |
1.1.4 | 198 | 4/3/2023 |
1.1.3 | 216 | 4/1/2023 |
1.1.2 | 208 | 4/1/2023 |
1.1.1 | 209 | 4/1/2023 |
1.0.5 | 223 | 4/1/2023 |
Lots of changes, see readme