Skip to content

himaniman/fineslider.net

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Contributors Forks Stargazers Issues MIT License

Logo

About Fine Slider

Tool for fast and precise setting of numerical values

This is a simple user control inspired by the control knob on analog devices and standard windows style. Can be controlled by mouse or touch screen. Allows you to natively and accurately set the value.

Screenshot

Some features:

  • Open source
  • Built-in converter of physical values
  • Controlled by mouse and touchscreen
  • Similar to native windows design
  • Does not use third party libraries

This is an easy quick project to manage physical numbers. It is under development.

Installation

dotnet add package FineSliderNet

Usage

To use it, you need to insert a XAML element. Normally, you should bind the Value parameter to the double variable. Optionally, you can specify limits for the scale.

  • Minimum - double | Restriction for setting by the user. Less than this value, the user will not be able to set.
  • Maximum - double | Restriction for setting by the user. The user will not be able to set more than this value.
  • Unit - string | Text parameter - naming units
  • Span - double | Sweep value for visible range.
  • MinimumSpan - double | User setting limit (when zooming).
  • MaximumSpan - double | User setting limit (when zooming).
<fs:FineSlider Value="{Binding ValueDouble}" Minimum="-60" Maximum="60"
               Unit="V" Span="0.1" MinimumSpan="0.01" MaximumSpan="100"/>

Don't forget to add the library to the list:

<Window x:Class="Example.MainWindow"
        ...
        xmlns:fs="clr-namespace:FineSliderNet;assembly=FineSliderNet"
        ...

License

Distributed under the MIT License. See LICENSE for more information.

Packages

No packages published

Languages