Sizing in WPF Busy Indicator (SfBusyIndicator)

4 May 20212 minutes to read

ViewBoxHeight

The ViewBoxHeight property allows the user to set the height of the ViewBox.

<!--To set the ViewboxHeight for SfBusyIndicator-->
<Notification:SfBusyIndicator Foreground="White" Header="Loading..." Background="CornflowerBlue" ViewboxHeight="200" >
</Notification:SfBusyIndicator>
// To set the ViewboxHeight for SfBusyIndicator
SfBusyIndicator SfBusyIndicator = new SfBusyIndicator();
SfBusyIndicator.Header = "Loading..";
SfBusyIndicator.Foreground = Brushes.White;
SfBusyIndicator.Background = Brushes.CornflowerBlue;
SfBusyIndicator.ViewboxHeight = 200;
Grid1.Children.Add(SfBusyIndicator);
' To set the ViewboxHeight for SfBusyIndicator
Dim SfBusyIndicator As New SfBusyIndicator()
SfBusyIndicator.Header = "Loading.."
SfBusyIndicator.Foreground = Brushes.White
SfBusyIndicatorBackground = Brushes.CornflowerBlue
SfBusyIndicator.ViewboxHeight = 200
Grid1.Children.Add(SfBusyIndicator)

ViewboxHeight

ViewBoxWidth

ViewBoxWidth property allows the user to set the width of the ViewBox.

<!--To set the ViewBoxWidth for SfBusyIndicator-->

<Notification:SfBusyIndicator Foreground="White" Header="Loading..." Background="CornflowerBlue" ViewboxWidth="50" >

</Notification:SfBusyIndicator>
// To set the ViewBoxWidth for SfBusyIndicator
SfBusyIndicator SfBusyIndicator = new SfBusyIndicator();
SfBusyIndicator.Header = "Loading..";
SfBusyIndicator.Foreground = Brushes.White;
SfBusyIndicator.Background = Brushes.CornflowerBlue;
SfBusyIndicator.ViewboxWidth = 50;
Grid1.Children.Add(SfBusyIndicator);
' To set the ViewBoxWidth for SfBusyIndicator
Dim SfBusyIndicator As New SfBusyIndicator()
SfBusyIndicator.Header = "Loading.."
SfBusyIndicator.Foreground = Brushes.White
SfBusyIndicator.Background = Brushes.CornflowerBlue
SfBusyIndicator.ViewboxWidth = 50
Grid1.Children.Add(SfBusyIndicator)

ViewBoxWidth

Busy Indicator with height and width

NOTE

View sample in GitHub