Intersoft ClientUI Documentation
BusyContent Property
See Also  Send Feedback
Intersoft.Client.UI.Controls Namespace > UXBusyIndicator Class : BusyContent Property






Gets or sets the content to display when busy.

Syntax

Visual Basic (Declaration) 
<CategoryAttribute("Common Properties")>
Public Property BusyContent As Object
Visual Basic (Usage)Copy Code
Dim instance As UXBusyIndicator
Dim value As Object
 
instance.BusyContent = value
 
value = instance.BusyContent
C# 
[CategoryAttribute("Common Properties")]
public object BusyContent {get; set;}
Delphi 
public read-write property BusyContent: TObject; 
JScript 
CategoryAttribute("Common Properties")
public function get,set BusyContent : Object
Managed Extensions for C++ 
[CategoryAttribute("Common Properties")]
public: __property Object* get_BusyContent();
public: __property void set_BusyContent( 
   Object* value
);
C++/CLI 
[CategoryAttribute("Common Properties")]
public:
property Object^ BusyContent {
   Object^ get();
   void set (    Object^ value);
}

Remarks

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.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2012 All Rights Reserved.