TaxPro GST Lib
User guide (Under Construction)
 
×
Menu
Index
ProgressPanel    
Assembly and Namespace: TaxProGST.Controls
 
ProgressPanel control has two views.
InProgess View.
Last Action View
Set properties (Before starting Long running Task)
InProgress = True
ProgressText = "Fetching Data..."
Set properties (At the end of Long running Task)
InProgress = False
LastAction = "Get Data Success." time will be prefixed internally.
 
ProgressPanel Properties
 
Property
Description
Data Type
InProgress
Set true to activate progress animation and show ProgressText 
bool
ProgressText
Display text below progress animation 
String
LastAction
Text to display in Last Action View (when InProgress is false). Date time would be prefixed to LastAction text as shown in above image.
LastAction text automatically displayed in red color if LastAction text contains words "FAILED", "CANCEL", "NOT A VALID".
String
 
Events
 
Event
Description
ActivityLogClickEvent
When not InProgress, "Activity Log" button will be displayed along with LastAction. This is RoutedEvent with RoutingStrategy Tunnel and will be raised on clicking this button.
This Tunneling event will propagate from child to parent.
Handle this event on every Page/Window/Form or alternatively handle this event only in Parent (eg: MDI Container) to open Activity Log Window.
 
 
Event Handler Code C# Sample:
 
//Add Global Root level handler for Tunneled Routed Event ActivityLogClick
DockingManager.AddHandler(TaxProGST.Controls.ProgressControl.ActvityLogClickEvent,
                                    new RoutedEventHandler(ShowActivityLog));
 
 
//Code to show/activate ActivityLog Window
public void ShowActivityLog(object sender, RoutedEventArgs e)
{
//Code to show/activate ActivityLog Window
}
 
 
Note: Class ProgressControlModel with ProgressPanel properties grouped together and INotifyPropertyChanged interface implemented for each property available in the same Namespce for DataBinding.