https://github.com/dirkster99/unitcombolib
A WPF/MVVM control for selection of values in different units with automatic unit conversion
https://github.com/dirkster99/unitcombolib
celsius control conversion dark-theme fahrenheit library light-theme mit-license mvvm theme themes ui-components units wpf
Last synced: about 2 months ago
JSON representation
A WPF/MVVM control for selection of values in different units with automatic unit conversion
- Host: GitHub
- URL: https://github.com/dirkster99/unitcombolib
- Owner: Dirkster99
- License: mit
- Created: 2017-07-30T22:22:54.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2020-05-24T15:03:58.000Z (about 5 years ago)
- Last Synced: 2025-02-03T21:03:03.361Z (4 months ago)
- Topics: celsius, control, conversion, dark-theme, fahrenheit, library, light-theme, mit-license, mvvm, theme, themes, ui-components, units, wpf
- Language: C#
- Homepage:
- Size: 58.6 KB
- Stars: 11
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: License.md
Awesome Lists containing this project
README
[](https://ci.appveyor.com/project/Dirkster99/unitcombolib)
[](https://github.com/Dirkster99/UnitComboLib/releases/latest)
[](http://nuget.org/packages/Dirkster.UnitComboLib) 
# Overview
The WPF UnitComboBox Control implements a combobox that allows the selection of values from different lists. Each list can represent a different unit (eg.: Celsius, Farenheit) and the viewmodel takes care of always converting to one unit (e.g. Celsius). This conversion is independent of what the user selected unit or value actually was.
This means, the application always sees only one unit and a different value while the user can use whatever unit he prefers to pick the aproppriate value.
Details are explained in a CodeProject article:
https://www.codeproject.com/Articles/575645/Inheriting-from-a-Look-Less-WPF-ControlSample Applications:
- [Edi](https://github.com/Dirkster99/Edi)
- [XmlExplorer](https://github.com/Dirkster99/XmlExplorer)## Theming
Load *Light* or *Dark* brush resources in you resource dictionary to take advantage of existing definitions.
```XAML
``````XAML
```These definitions do not theme all controls used within this library. You should use a standard theming library, such as:
- [MahApps.Metro](https://github.com/MahApps/MahApps.Metro),
- [MLib](https://github.com/Dirkster99/MLib), or
- [MUI](https://github.com/firstfloorsoftware/mui)to also theme standard elements, such as, button and textblock etc.