A WPF/MVVM control for selection of values in different units with automatic unit conversion

  • Users starred: 8
  • Users forked: 0
  • Users watching: 8
  • Updated at: 2019-11-17 19:32:50

Build status Release NuGet

Net4 NetCore3


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-Control

Sample Applications:


Load Light or Dark brush resources in you resource dictionary to take advantage of existing definitions.

        <ResourceDictionary Source="/UnitComboLib;component/Themes/DarkBrushs.xaml" />
        <ResourceDictionary Source="/UnitComboLib;component/Themes/LightBrushs.xaml" />

These definitions do not theme all controls used within this library. You should use a standard theming library, such as:

to also theme standard elements, such as, button and textblock etc.