Bunifu Framework Docs
HomePricingFAQsMy Account
  • Introduction
  • Getting started
    • Requirements
    • Installation
    • Installing for .Net 5 & Above
    • Licensing
      • Managing your licenses
      • Bunifu Licensing CLI
      • Bunifu Device Remover (Deprecated)
  • BUNIFU UI
    • Controls
      • Bunifu Button
      • Bunifu Button (variant)
      • Bunifu Cards
      • Bunifu CheckBox
      • Bunifu Circle Progress
      • Bunifu Datagrid View
      • Bunifu Date Picker
      • Bunifu Drop Down
      • Bunifu Flat Button
      • Bunifu Form Caption Button
      • Bunifu Form Control Box
      • Bunifu Form Resize Icon
      • Bunifu Gradient Panel
      • Bunifu Icon Button
      • Bunifu Image Button (New)
      • Bunifu Image Button (Old)
      • Bunifu IOS Switch (1.5.3)
      • Bunifu Label
      • Bunifu Loader
      • Bunifu Picture Box
      • Bunifu Pages
      • Bunifu Panel
      • Bunifu Progress Bar
      • Bunifu Radial Gauge
      • Bunifu Radio Button
      • Bunifu Rating
      • Bunifu Range
      • Bunifu Separator
      • Bunifu Sliders
      • Bunifu Shadow Panel
      • Bunifu Shapes
      • Bunifu Switch (1.5.3)
      • Bunifu ScrollBars
      • Bunifu Toggle Switch
      • Bunifu Toggle Switch (variant)
      • Bunifu Tile Button
      • Bunifu Thin Button (1.5.3)
      • Bunifu ToolTip
      • Bunifu Textbox
      • Bunifu User Control
    • Components
      • Bunifu Color Transition
      • Bunifu Drag
      • Bunifu Elipse [Deprecated]
      • Bunifu Form Dock
      • Bunifu Form Drag
      • Bunifu Form Resizer
      • Bunifu Snackbar
      • Bunifu Transition
  • BUNIFU CHARTS
    • Introduction
      • Quick Tips
    • Chart Components
      • Bunifu Bar Chart
      • Bunifu Bubble Chart
      • Bunifu Canvas Control
      • Bunifu Doughnut Chart
      • Bunifu Horizontal bar Chart
      • Bunifu Line Chart
      • Bunifu Pie chart
      • Bunifu Polar Chart
      • Bunifu Radar Chart
  • BUNIFU DATAVIZ [Deprecated]
    • Basic Charts [Deprecated]
      • Step Line Chart [Deprecated]
      • Step Area Chart [Deprecated]
      • Spline Chart [Deprecated]
      • Pie Chart [Deprecated]
      • Line Chart [Deprecated]
      • Doughnut Chart [Deprecated]
      • Bar Chart [Deprecated]
      • Area Chart [Deprecated]
      • Column Chart [Deprecated]
    • Advanced Charts [Deprecated]
      • Stacked Column 100 Chart [Deprecated]
      • Stacked Column Chart [Deprecated]
      • Stacked Bar Chart 100 [Deprecated]
      • Stacked Bar Chart [Deprecated]
      • Stacked Area Chart 100 [Deprecated]
      • Stacked Area Chart [Deprecated]
      • Scatter Chart [Deprecated]
      • Range Spline Area Chart [Deprecated]
      • Range Column Chart [Deprecated]
      • Range Bar Chart [Deprecated]
      • Range Area Chart [Deprecated]
      • OHLC Chart [Deprecated]
      • Candle Stick Chart [Deprecated]
      • Bubble Chart [Deprecated]
Powered by GitBook
On this page
  • Overview
  • Getting Started
  • Adding Bunifu Range at Design Time
  • Adding Bunifu Range at Run Time
  • Appearance Properties
  • BackgroundColor
  • BorderRadius
  • IndicatorColor
  • Value Properties
  • MaximumRange
  • RangeMax
  • RangeMin
  • RangeChanged Event
  • Take Away

Was this helpful?

  1. BUNIFU UI
  2. Controls

Bunifu Range

Quickly get a subrange of values with the range filter component for in-depth search and analysis.

PreviousBunifu RatingNextBunifu Separator

Last updated 3 years ago

Was this helpful?

Overview

Bunifu Range is a nifty .NET double slider control that allows the user to select a sub-range of values from a larger range of possible values. It also allows you to filter data by selecting a sub-range collection from a larger collection.

Getting Started

Adding Bunifu Range at Design Time

Bunifu Range is added to the form by simply locating BunifuRange in your toolbox and drag it to your form as shown below. You can then customize using custom properties as will be elaborated later in this article.

Adding Bunifu Range at Run Time

To add Bunifu range at run-time we will use the Load event handler to run the code that adds Bunifu Range to our form as shown below.

private void Form1_Load(object sender, EventArgs e){
    
    var range = new Bunifu.Framework.UI.BunifuRange();
    this.Controls.Add(range);
    
}
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
    
    Dim range As New Bunifu.Framework.UI.BunifuRange
    Controls.Add(range);
    
End Sub

Let's take a deep dive and get insights into the available properties on Bunifu Range.

Appearance Properties

BackgroundColor

This property allows you to get or set the background color of the range track. It supports the use of RGB or HEX color values.

BorderRadius

This property allows you to set the roundness of the range selector edges. The greater the value, the more rounded the selectors become.

IndicatorColor

This property enables you to get or set a color value of the minimum and maximum range selector indicators. It supports the use of RGB or HEX color values.

Value Properties

MaximumRange

This property allows you to get or set the total range of values the user can select. It accepts only integer values and has a default value of 100.

RangeMax

This property allows you to get or set the maximum value filter within the value set in the MaximumRange property.

RangeMin

This property allows you to set the minimum value filter within the total range value set in the MaximumRange property.

RangeChanged Event

The range changed event allows you to perform actions whenever the RangeMax and RangeMin properties are changed on the control. Here's a code snippet that sets the new value text to a label control whenever the RangeChanged event is raised.

private void bunifuRange1_RangeChanged(object sender, EventArgs e)
{
    bunifuLabel.Text = string.Format("${0} - ${1}", bunifuRange1.RangeMin, bunifuRange1.RangeMax);
}
Private Sub bunifuRange1_RangeChanged(ByVal sender As Object, ByVal e As EventArgs)
	bunifuLabel.Text = String.Format("${0} - ${1}", bunifuRange1.RangeMin, bunifuRange1.RangeMax)
End Sub

Take Away

We hope you have gained insights into using Bunifu Range control and that it will help you create a better user experience for your users. It works out-of-the-box and is also customizable to suit the needs of your app.

Should you have feedback or suggestions please send us via chat on the bottom right corner of the screen.