Intersoft.Client.UI.Aqua.UXDesktop Namespace > UXWindow Class : BusyIndicatorTemplate Property |
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); }
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.
<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>
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