Table of Contents

Interface IProgressBarBuilder

Namespace
BSGameLib.UI.Builder
Assembly
BSGameLib.UI.dll

A progress bar, the ProgressBar element of a view file, built in C#.

public interface IProgressBarBuilder : IControlBuilder<IProgressBarBuilder>
Inherited Members

Methods

BindValue(string)

Binds the value to the view model property propertyName.

IProgressBarBuilder BindValue(string propertyName)

Parameters

propertyName string

Returns

IProgressBarBuilder

WithBorderColor(string)

Sets the color of a border drawn around the whole bar.

IProgressBarBuilder WithBorderColor(string colorHex)

Parameters

colorHex string

Returns

IProgressBarBuilder

WithBorderThickness(int)

Sets the border's width in pixels. Has no effect without a border color.

IProgressBarBuilder WithBorderThickness(int thickness)

Parameters

thickness int

Returns

IProgressBarBuilder

WithFillColor(string)

Sets the color of the filled part.

IProgressBarBuilder WithFillColor(string colorHex)

Parameters

colorHex string

Returns

IProgressBarBuilder

WithFillGradient(string)

Sets a gradient for the filled part, naming a Gradient resource. Drawn in place of the fill color when both are set.

IProgressBarBuilder WithFillGradient(string gradientId)

Parameters

gradientId string

Returns

IProgressBarBuilder

WithMaximum(float)

Sets the value that fills the bar completely.

IProgressBarBuilder WithMaximum(float maximum)

Parameters

maximum float

Returns

IProgressBarBuilder

WithSize(int, int)

Sets the bar's size in pixels, track included.

IProgressBarBuilder WithSize(int width, int height)

Parameters

width int
height int

Returns

IProgressBarBuilder

WithTrackColor(string)

Sets the color of the unfilled track behind the bar.

IProgressBarBuilder WithTrackColor(string colorHex)

Parameters

colorHex string

Returns

IProgressBarBuilder

WithValue(float)

Sets how far along the bar is, between zero and the maximum.

IProgressBarBuilder WithValue(float value)

Parameters

value float

Returns

IProgressBarBuilder