Intersoft ClientUI Documentation
BusyIndicatorTemplate Property (UXWindow)
Example 



Gets or sets the template that represents the busy indicator when the IsBusy is true.
Syntax
Public Property BusyIndicatorTemplate As DataTemplate
Dim instance As UXWindow
Dim value As DataTemplate
 
instance.BusyIndicatorTemplate = value
 
value = instance.BusyIndicatorTemplate
public DataTemplate BusyIndicatorTemplate {get; set;}
public:
property DataTemplate^ BusyIndicatorTemplate {
   DataTemplate^ get();
   void set (    DataTemplate^ value);
}
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.

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.
<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>
Requirements

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

See Also

Reference

UXWindow Class
UXWindow Members

Send Feedback