Sizing in WPF Busy Indicator

18 Nov 20182 minutes to read

ViewBoxHeight

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

<!--To set the ViewboxHeight for Busy Indicator-->
<Notification:SfBusyIndicator Foreground="White" Header="Loading..." Background="CornflowerBlue" ViewboxHeight="200" >
</Notification:SfBusyIndicator>
// To set the ViewboxHeight for Busy Indicator
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 Busy Indicator
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 Busy Indicator-->

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

</Notification:SfBusyIndicator>
// To set the ViewBoxWidth for Busy Indicator
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 Busy Indicator
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

View sample in GitHub