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 Loader at Design Time
  • Adding Bunifu Loader at Runtime
  • Loader Properties
  • 1. AllowStylePresets
  • 2. CapStyle
  • 3. Color
  • 4. DashWidth
  • 5. Preset
  • 6. RingStyle
  • 7. Speed
  • 8. Thickness
  • Text Properties
  • 1. ShowText
  • 2. Text
  • 3. ForeColor
  • 4. Font
  • 5. TextPadding
  • Remarks

Was this helpful?

  1. BUNIFU UI
  2. Controls

Bunifu Loader

Quickly customize and generate your stylish loaders and spinners.

PreviousBunifu LabelNextBunifu Picture Box

Last updated 3 years ago

Was this helpful?

Overview

Bunifu Loader is a custom .NET control that enables you to quickly generate infinite loaders for indeterminate operations and tasks. It has a set of pre-built styled loader presets for you to choose suitable for your application. It is highly customizable and requires no complex procedures to set it up.

Getting Started

This section describes adding Bunifu Loader at the designer level and during a runtime event.

Adding Bunifu Loader at Design Time

Bunifu Loader can be added to a Form by simply locating BunifuLoader in your Visual Studio toolbox, and dragging it to the form as demonstrated below. You can quickly customize the control using its properties in the smart tag. Later in this documentation, we will get into deeper detail about its features.

Adding Bunifu Loader at Runtime

To add Bunifu Loader at runtime, we will use the Form's load event to instantiate BunifuLoader and add it to the form as shown in the codes below:

private void Form1_Load(object sender, EventArgs e)
{
    //instantiate Bunifu Loader using Bunifu.UI.WinForms
    BunifuLoader bunifuLoader = new BunifuLoader();
    // set the location of the loader
    bunifuLoader.Location = new Point(228, 110);
    //set the size of the loader
    bunifuLoader.Size = new Size(172, 165);
    //set the color for the loader
    bunifuLoader.Color = Color.DodgerBlue;
    //add the loader to the form
    this.Controls.Add(bunifuLoader);

}
Private Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs)
	'instantiate Bunifu Loader using Bunifu.UI.WinForms
	Dim bunifuLoader As New BunifuLoader()
	' set the location of the loader
	bunifuLoader.Location = New Point(228, 110)
	'set the size of the loader
	bunifuLoader.Size = New Size(172, 165)
	'set the color for the loader
	bunifuLoader.Color = Color.DodgerBlue
	'add the loader to the form
	Me.Controls.Add(bunifuLoader)

End Sub

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

Loader Properties

1. AllowStylePresets

This property allows you to get or set a boolean value, which determines whether you can utilize the Preset property to customize the appearance of the loader. By default, the property is set to true.

2. CapStyle

This property allows you to get or set a style ( cap enumeration) for the indicator. The enumeration defines the following values: Flat, Round and Triangle.

3. Color

This property allows you to get or set a color value for the indicator. It supports the use of RGB and HEX color values.

4. DashWidth

This property allows you to get or set the array pattern (double) for the dashed, dotted, and diamond ring style. The value determines the array of the dashes. A greater value results in fewer arrayed elements for the loader.

5. Preset

This property allows you to get or set the indicator style (preset enumeration) for the loader. The property works similarly as the RingStyle which sets the progress ring style for the loader. The enumeration defines the following values: Solid, Dashed, Dotted and Diamond.

This property works when the AllowStylePreset is set to true. Also, the property gets overridden if the RingStyle property is updated with a new value.

6. RingStyle

This property allows you to get or set the indicator style (ring enumeration) for the loader. The enumeration defines the following values: Solid, Dashed, Dotted and Diamond.

This property gets overridden if the preset property is updated with a new value.

7. Speed

This property allows you to get or set the speed (int) of the loader's indicator. The greater the value, the more the speed. The default speed value is 10.

8. Thickness

This property allows you to set the indicator's thickness(int). A greater value results in a unique loader style based on the ring style chosen for the loader. The default thickness value is 7.

Text Properties

1. ShowText

This property allows you to get or set a boolean value, which determines whether or not the label text should be shown beneath the loader's indicator.

2. Text

This property allows you to get or set a text string for the loader control.

3. ForeColor

This property allows you to get or set a color value for the text rendered in the control. It supports the use of RGB and HEX color values.

4. Font

This property allows you to get or set an array of font styles for the text rendered in the control. You can set, for example, the font-family, the font-size and much more.

5. TextPadding

This property allows you to get or set an array of padding values(int) that create spacings between the text and the defined borders of the loader control.

Remarks

You can now generate more elegant loaders, which we hope will improve the appearance and feel of your UI while also providing a better user experience.

Please contact us via chat in the bottom right corner of the screen if you have feedback or recommendations.