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






Gets or sets the margin to apply to the busy content element.

Syntax

Visual Basic (Declaration) 
<CategoryAttribute("Layout")>
Public Property BusyContentMargin As Thickness
Visual Basic (Usage)Copy Code
Dim instance As UXBusyIndicator
Dim value As Thickness
 
instance.BusyContentMargin = value
 
value = instance.BusyContentMargin
C# 
[CategoryAttribute("Layout")]
public Thickness BusyContentMargin {get; set;}
Delphi 
public read-write property BusyContentMargin: Thickness; 
JScript 
CategoryAttribute("Layout")
public function get,set BusyContentMargin : Thickness
Managed Extensions for C++ 
[CategoryAttribute("Layout")]
public: __property Thickness get_BusyContentMargin();
public: __property void set_BusyContentMargin( 
   Thickness value
);
C++/CLI 
[CategoryAttribute("Layout")]
public:
property Thickness BusyContentMargin {
   Thickness get();
   void set (    Thickness 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.