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






Gets or sets a value that indicates whether the control is busy.

Syntax

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

C# Copy Code
private void UXButton_Click(object sender, RoutedEventArgs e)
{
    this.BusyIndicator1.IsBusy = true;
}

The IsBusy property is a dependency property, which means you can bind it to a property in the ViewModel using MVVM design pattern. This allows you to set the busy mode from the user interaction logic in the ViewModel, track the notification and give feedback as a response. 

For more information on building Silverlight and WPF application with MVVM design pattern, see MVVM Pattern Overview.

For more information about UXBusyIndicator, see UXBusyIndicator Overview.

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.