Intersoft.Client.UI.Controls Namespace > UXBusyIndicator Class : BusyContentMargin Property |
<CategoryAttribute("Layout")> Public Property BusyContentMargin As Thickness
Dim instance As UXBusyIndicator Dim value As Thickness instance.BusyContentMargin = value value = instance.BusyContentMargin
[CategoryAttribute("Layout")] public Thickness BusyContentMargin {get; set;}
[CategoryAttribute("Layout")] public: property Thickness BusyContentMargin { Thickness get(); void set ( Thickness value); }
UXBusyIndicator displays a busy visual hint when the control is busy, which is done by setting the IsBusy property to true. You can also easily add a custom content to the busy indicator through the provided BusyContent property, such as showing a "Loading..." text, or other content that suitable to your application's context.
The following example shows how to add a text to the busy content and set the busy mode in Button .Click event.
XAML |
Copy Code
|
---|---|
<Intersoft:UXBusyIndicator x:Name="BusyIndicator1" BusyContent="Signing in..."> <Intersoft:DockPanel Width="300" Height="200"> <TextBlock Text="Welcome to My Application" HorizontalAlignment="Center"/> <Intersoft:UXItemsControl Intersoft:DockPanel.IsFillElement="True" Width="300"> <Intersoft:FieldLabel> <Intersoft:UXTextBox Width="150"/> </Intersoft:FieldLabel> <Intersoft:FieldLabel Header="Password:"> <Intersoft:UXPasswordBox Width="150"> </Intersoft:FieldLabel> <Intersoft:FieldLabel Header=""> <Intersoft:UXButton Content="Login" Width="80" IsDefault="True" Click="UXButton_Click"/> </Intersoft:FieldLabel> </Intersoft:UXItemsControl> </Intersoft:DockPanel> </Intersoft:UXBusyIndicator> |
In addition to customizing the busy content, there are several layout-related properties that you can configure such as the busy content placement position and the busy content margin. These properties provides an easy way for you to customize common settings without requiring control re-templating.
By default, the busy content appears below the busy indicator, which is controlled through the BusyContentPlacement property, while the item spacing between the indicator and the content is controlled through the BusyContentMargin property.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2