Intersoft ClientUI Documentation
BusyIndicatorTemplate Property
See Also  Example Send Feedback
Intersoft.Client.UI.Aqua.UXDesktop Namespace > UXWindow Class : BusyIndicatorTemplate Property






Gets or sets the template that represents the busy indicator when the UXWindow.IsBusy is true.

Syntax

Visual Basic (Declaration) 
Public Property BusyIndicatorTemplate As DataTemplate
Visual Basic (Usage)Copy Code
Dim instance As UXWindow
Dim value As DataTemplate
 
instance.BusyIndicatorTemplate = value
 
value = instance.BusyIndicatorTemplate
C# 
public DataTemplate BusyIndicatorTemplate {get; set;}
Delphi 
public read-write property BusyIndicatorTemplate: DataTemplate; 
JScript 
public function get,set BusyIndicatorTemplate : DataTemplate
Managed Extensions for C++ 
public: __property DataTemplate* get_BusyIndicatorTemplate();
public: __property void set_BusyIndicatorTemplate( 
   DataTemplate* value
);
C++/CLI 
public:
property DataTemplate^ BusyIndicatorTemplate {
   DataTemplate^ get();
   void set (    DataTemplate^ value);
}

Example

The following example shows how to setup the UXWindow to show a progress bar when the window is busy. This is done by specifying a custom data template to the BusyIndicatorTemplate property.
XAMLCopy Code
<Intersoft:UXWindow 
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
	xmlns:Intersoft="http://intersoft.clientui.com/schemas"
   	Header="DetailsWindow">

    <Intersoft:UXWindow.BusyIndicatorTemplate>

        <DataTemplate>

            <Border CornerRadius="4" Width="200" Height="80" Background="#CC000000">
                <Intersoft:UXProgressBar Width="160" Height="20" HorizontalAlignment="Center" IsIndeterminate="True"/>
            </Border>

        </DataTemplate>
        
    </Intersoft:UXWindow.BusyIndicatorTemplate>
    
	<Grid x:Name="LayoutRoot">
        <StackPanel Orientation="Vertical">
            <StackPanel>
                <Intersoft:FieldLabel Header="Name: ">
                    <Intersoft:UXTextBox Width="120"/>
                </Intersoft:FieldLabel>
                <Intersoft:FieldLabel Header="Address: ">
                    <Intersoft:UXTextBox Width="150"/>
                </Intersoft:FieldLabel>
            </StackPanel>
            <Intersoft:UXButton Name="SaveButton"
                                Content="Save" 
                                HorizontalAlignment="Center" 
                                Click="SaveButton_Click" />
        </StackPanel>
    </Grid>
</Intersoft:UXWindow>

Remarks

While processing a long running operation, such as in report generation and asynchronous data retrieval scenario, you may want to show a customized busy indicator in addition to the built-in behaviors described in the previous section.

You can add your own busy indicator to be displayed when the window is busy by setting your custom XAML template to the BusyIndicatorTemplate property of the window.

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.