Intersoft ClientUI Documentation
BusyIndicatorTemplate Property
See Also  Example Send Feedback
Intersoft.Client.UI.Navigation Namespace > UXFrame Class : BusyIndicatorTemplate Property






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

Syntax

Visual Basic (Declaration) 
Public Property BusyIndicatorTemplate As DataTemplate
Visual Basic (Usage)Copy Code
Dim instance As UXFrame
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 customize the busy indicator template to display an indeterminate progress bar during busy state.
XAMLCopy Code
<Intersoft:UXPage.Resources>
    <DataTemplate x:Key="FrameBusyTemplate">
        <Grid Opacity="0.8">
                <Border BorderThickness="1" HorizontalAlignment="Center" VerticalAlignment="Center"
                        CornerRadius="8" Background="Black">

                        <Intersoft:UXProgressBar HorizontalAlignment="Left" Width="150" Height="18"
                                                 IsIndeterminate="True" Margin="20"/>

                </Border>
        </Grid>
    </DataTemplate>
</Intersoft:UXPage.Resources>

...

<Intersoft:UXFrame x:Name="ContentFrame"
                   BusyIndicatorTemplate="{StaticResource FrameBusyTemplate}"
                   BusyIndicatorLatency="0.8">
     <Intersoft:UXFrame.UriMapper>
         ...
     </Intersoft:UXFrame.UriMapper>
</Intersoft:UXFrame>

Remarks

To display the user interface that represents busy indicator, you define the XAML template to apply to the BusyIndicatorTemplate of the navigation frame.

For more information, see Navigation 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.