A new home

I’ve made the move to WordPress!

You should be automatically redirected in 5 seconds. Please visit World Wide Code on Wordpress

Hope to see you there!
Showing posts with label silverlight. Show all posts
Showing posts with label silverlight. Show all posts

Friday, November 18, 2011

Understanding MVVM in 5 Minutes


The Model-View-ViewModel (MVVM) pattern provides a flexible way to build Silverlight applications that promotes code re-use, simplifies maintenance and supports testing. The pattern consists of three different components including the Model (entities and code on the server), the View (the Silverlight screens) and the ViewModel (the glue between the Model and the View).
The essential aspects of MVVM are: The Model, the View and the ViewModel.
MVVM is defined by the separation of the Model from the View from the ViewModel. This separation pattern clearly delineates the responsibilities of each of the essential aspects of MVVM.

Saturday, October 8, 2011

How to: Use a Background Worker


In Silverlight, there is a BackgroundWorker class that provides a mechanism to perform time consuming tasks on a background thread.
The BackgroundWorker also allows you to report progress back to the UI thread and also cancel the on going operation.
Here are some steps about how to use the background worker.

Tuesday, August 30, 2011

Isolated Storage in Silverlight


Storing data in the Isolated storage can be useful, however you need to take appropriate precautions.
  • Wrap all calls to isolated storage within try/catch blocks to be resilient to potential IsolatedStorageExceptions, which can be thrown if isolated storage is disabled or if the store has been deleted.
  • If your Silverlight application needs to store a lot of data in isolated storage, consider hosting it on its own site so that it won’t affect other applications on the site and other applications won’t affect it.
  • If you have a group of Silverlight applications that need to share data on the client, host them on the same site.
  • Keep isolated storage paths as small as possible to prevent the internal full path from reaching the 260-character limit.
  • Encrypt sensitive data stored in isolated storage.
  • Use IsolatedStorageSettings to store objects and simple settings in isolated storage.
  • Use IsolatedStorageFile if you want to use file and stream-based APIs, are storing large amounts of data, or need fine-grained control over the contents of isolated storage.

Thursday, July 14, 2011

Categorize Custom Properties in Visual Studio or Blend


Many a times when you write your own control in Silverlight, its properties are displayed under "Other" in Visual Studio and "Miscellaneous"  in Expression Blend.

For one or two properties this behaviour is acceptable, but when you are creating custom template controls, usually you have many custom properties. Having these organized in groups makes the life of a XAML designer a bit simple.

So how do you set categories to your properties?

The answer is simple, just place a Category Attribute to your property like this:
[Category("My Properties")]
public string MyCustomProperty{ get; set; }
You can have multiple properties in one group by setting two properties within the same group name.

Related Links

Wednesday, May 25, 2011

Windows Phone 7: Mango preview



Microsoft gave a preview of the upcoming "Mango" release of Windows Phone, through a series of events around the world.

Mango is set to provide 500 new features and enhance the smartphone experience dramatically.

Communications: Easier to Connect and Share
  • Threads
  • Groups
  • Deeper social network integration.
  • Linked inbox
  • Hands-free messaging
A Smarter Approach to Apps
  • App Connect
  • Improved Live Tiles
  • Multitasking
Taking the Internet Beyond the Browser
  • Internet Explorer 9.
  • Local Scout
  • Bing on Windows Phone
  • Quick Cards

Sunday, May 15, 2011

Silverlight 5 - 3D support


The 3D Graphics API was added in the recently released Silverlight 5 Beta.

Having 3D graphics support is a major advancement in Silverlight and is expected to have a huge impact in the near future.

One area where the 3D Graphics API can be useful is 3D Graphics

3D Physics demo




There are a lot of places that you can visit to gain more knowledge about the 3D Physics.
Here are some useful links:
Another nice implementation of the 3D Graphics API is Augmented Reality.
Augmented Reality demo

Useful Links
I would have appreciated more documentation from the Silverlight Team on the 3D Graphics API.
Let's wait and see how these features are implemented by various people. (If you have a good implementation don't forget to ping me)

Sunday, May 1, 2011

What’s Coming In Mango–Reminders


Mango is the next update to Windows Phone 7. Its set to bring a lot of features with it, including something called as "Reminders"

This is what you could be able to do:



What are you waiting for, see this latest post from Jesse Liberty on his blog.

Tuesday, April 26, 2011

Implicit Templates in Silverlight 5


Silverlight 5 has added many new useful features. If you have not read about Silverlight 5's new features then read Silverlight 5: What’s New.

Implicit Templates is one of the new features included in Silverlight 5. Implicit Templates can be said to be data templates associated with a particular data type. These templates will be applied to all template-driven controls which are trying to display the specified data type.

For example, If you have two classes Manager and Employee both derived from the Person class. Now you would like to display the list of people in your company with different styling for each type of person. this is where Implicit Templates make your life easy.

Just specify two Data Templates for each of the two classes i.e. Manager and Employee.

<ListBox x:Name="PeopleList">
<ListBox.Resources>
<DataTemplate DataType="local:Manager">
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding Name}" FontWeight="Bold" />
<TextBlock Text="(Manager)"  FontStyle="Italic" Margin="5,0,0,0"/>
</StackPanel>
</DataTemplate>
<DataTemplate DataType="local:Employee">
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding Name}" />
<TextBlock Text="{Binding ManagerName, StringFormat='Managed by: {0}'}" FontStyle="Italic" Margin="5,0,0,0" Foreground="Gray" />
</StackPanel>
</DataTemplate>
</ListBox.Resources>
</ListBox>

This will display some thing like this:


Implicit Templates does allow you to easily specific unique characteristics of an object in your data template.

Another example many people use for Implicit Templates  is Twitter. See this example from Pete Brown. In his post, Pete Brown describes Implicit Templates in more detail. 



Install Silverlight

Video: Pete Brown demonstrates Implicit DataTemplates.

Related Links

Profiling Silverlight Applications


You can profile Silverlight 4 applications, however this task is not integrated within Visual Studio 2010.
Here's what you need to do: open an Visual Studio 2010 Command Prompt in administrator mode and run the following:
VSPerfClrEnv /sampleon
VSPerfCmd -start:sample -output:somefile.vsp
VSPerfCmd -globalon
VSPerfCmd -launch:"c:\Program Files (x86)\Internet Explorer\iexplore.exe" -args:""
VSPerfCmd -shutdown
VSPerfClrEnv /off
This will create a VSP (Visual Studio Profile) file in the current directory, which you can then open in Visual Studio.

Silverlight5 now supports profiling within Visual Studio 2010 SP1.

Related links

Saturday, April 23, 2011

Silverlight Trusted Applications


A new feature Silverlight 5 Beta has introduced is the ability to do some of the “trusted” features in the browser.

This brings the current functionality of trusted applications in current form to be used in the browser context without having to be installed.


This still requires the XAP to have the Elevated Permissions security setting in the manifest as it would exist with out-of-browser applications as well as the XAP being signed (and the certificate in the user’s trusted publisher store).


For example, Multiple window support has been added in Silverlight 5 Beta for Trusted OOB applications. Here's a code snippet from xamlgeek.net

Silverlight 5 supports the ability to open multiple top-level windows. It is required that the application run with elevated permissions.
clip_image001
Closing the main application window will cause all windows to close.
I would be writing more in detail about each of the new Silverlight 5 features in future posts...
For more on how to create a trusted application follow the guide below:

Request elevated trust

Check the "Require elevated trust when running outside the browser" check box in the Out-of-Browser Settings dialog box.
Out-of-Browser Settings dialog box, Require elevated trust option

When users attempt to install an application that requires elevated trust, they are shown a security warning instead of the normal install dialog box. The default warning indicates that the publisher is not verified, and does not display your application icon.

Security Warning dialog box for unsigned application requiring elevated trust

Sign your XAP

You should always sign an application that requires elevated trust to enable verification that you are the publisher. For debugging purposes, Visual Studio lets you create and use a test certificate.
Signing page, project designer

A signed application still displays the security warning at install time, but the message is milder and includes your application icon.

If you would like to know more about application signing visit this MSDN article.
Security Warning dialog box for signed application requiring elevated trust

After installation, the trusted application can access all of the out-of-browser features. Additionally, it is not subject to security restrictions such as user-consent requests and full-screen keyboard limitations.


Related links

Thursday, April 21, 2011

Silverlight 5: What's New


Scott Guthrie announced Silverlight 5 in Silverlight Firestarter event last December 2010. Now at the MIX11 conference Scott Guthrie announced the availability of Silverlight 5 Beta.

Lets see what this new Silverlight 5 Beta release has to offer.

    • XAML debugging
    • Media
    • Text
    • Implicit Data Templates
    • Markup Extensions
    • Controls
    • 3D Graphics
    • Trusted Applications in Browser
    • Trusted Applications
    • General “stuff”
XAML debugging
Like the name suggests, you can now set a break point in XAML on any line has a {Binding} syntax. Here is Pete Brown demonstrating XAML debugging.

Media

Silverlight 5 now has something similar to Windows Phone called SoundEffect. You can also control the volume, pitch, etc. in the SoundEffect class. TrickPlay or variable speed playback is also supported in this release.

Text

A RichTextBoxOverflow element has been introduced, that will allow you to have linked text containers where the text flows to another element.  This will help with automatically laying out text in situations like mulit-column.

A few things that are still being worked on are improving text clarity using pixel-snapping and enhanced OpenType support.  Some of these were demonstrated at MIX so be sure to watch the keynote and session videos!


Implicit Data Templates

It is now possible to specify a Data Type for a particular Data Template. This means that you can have different representation of  two different objects in the same list depending on their data types.
<ListBox x:Name="PeopleList">
<ListBox.Resources>
<DataTemplate DataType="local:Manager">
<Border Background="LightBlue">
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding FirstName}" />
<TextBlock Text="{Binding LastName}" />
</StackPanel>
</Border>
<DataTemplate>
<DataTemplate DataType="local:Employee">
<Border Background="Bisque">
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding FirstName}" />
<TextBlock Text="{Binding LastName}" />
</StackPanel>
</Border>
</DataTemplate>
</ListBox.Resources>
</ListBox>
I would say this feature is going to help a lot for people who deal with different sets of data at a time. As always we have Pete Brown demonstrate Implicit Data Templates.

Markup Extensions

This will help with those who follow the MVVM pattern of development as well as those who have been yearning to be able to have their own expressions run on markup. Allowing Markup Extensions is a great feature, lets see how it affects Silverlight development in the near future.

Controls

On a control level Silverlight 5 Beta brings for us Multi Click and multiple window support.

We now have a ClickCount property in the MouseButtonEventArgs that can be used to determine if a double-click or triple click event has been generated.


Multiple-window is the same Window element that the MainWindow shares and you are able to create numerous Windows that your application can interact with and show as separate windows in the OS.  This is not a ChildWindow implementation where they are all within the main object.  This feature is available to out-of-browser applications.  Once the main application is closed, all the Windows created from that will close as well.


3D Graphics

One of the coolest demos at the Silverlight Firestarter was the 3D demonstrations.

Wednesday, April 20, 2011

Setting the filename in the Save As Dialog in Silverlight


What can I say? Setting the filename in the Save As Dialog in Silverlight is (how should I put it?) not possible.

This is a feature required by many one of you who are using the current version of Silverlight. Current version?


If might not have noticed but this feature suggestion will now be available in Silverlight 5 Beta. This is because Tim Heuer has just flagged the Setting the filename in the Save As Dialog in Silverlight suggestion  as "Planned" (On 14th April).


This is one of many suggestions from the Silverlight Feature Suggestions Forum that have been accepted or planned to debut in Silverlight 5 Beta.


Some other useful suggestions that have been accepted are


If you have not added your favorite feature suggestion, do it now, may be it could be included in the next Silverlight release.


For more on what can you expect from Silverlight 5 , see Scott Guthrie's blog post Announcing Silverlight 5.

Related Links

Monday, April 4, 2011

Dynamic loading of Assemblies II

In continuation with my previous post, I would like to take dynamic loading to the next level.
Firstly, I would be replacing the download of the dynamic modules using Web Client with a service call.

The reason for this is simple, more flexibility and additional security. When using Web Client, our dynamic dll is placed alongside the xap in the client bin folder, thus making it publicly available via a static url. This posses a security risk for applications handling sensitive data. By using the web service, we can not only avoid the dynamic dll being hosted on the web but can also add additional security like a session token etc.

Next, I would be adding some versioning to the dynamic modules so that the client can cache the dynamic modules if necessary. The versioning not only enables client side caching but also enables any version rollback or parallel versioning.

Now that I have given some idea about what I would be doing in this post, let us take a look at the implementation in detail.

The web service will consist of two calls, the first which returns all the dynamic modules that are available and the other which will return the dynamic assembly itself.

The versioning takes place in two steps
  1. There is a EnableCache flag added to the application configuration. This helps to disable any caching of dynamic modules on the client side.
  2. The version attribute for that dynamic assembly. For this, I have maintained a simple Assemblies.xml file listing all the dynamic modules available
Here is the service code:
static string appData = AppDomain.CurrentDomain.BaseDirectory + "/App_Data/";
public class AssemblyInformation
{

public string AssemblyName { get; set; }
public string Version { get; set; }
public bool IsNew { get; set; }
}
[OperationContract]
List<AssemblyInformation> GetAssemblies(List currentVersions)
{

if (currentVersions == null) throw new ArgumentNullException("CurrentVersions");
bool EnableCache = Convert.ToBoolean(System.Configuration.ConfigurationManager.AppSettings["EnableCache"]);
List assemblyVersions = new List();
XElement document = XDocument.Parse(File.ReadAllText(appData + "Assemblies.xml")).Root;
IEnumerable<XElement> assemblies = document.Elements();
foreach (var assembly in assemblies)
{
string name = assembly.Attribute("Name").Value;
string version = assembly.Attribute("Version").Value;
string source = assembly.Attribute("Source").Value;
assemblyVersions.Add(new AssemblyInformation
{
AssemblyName = name,
Version = version,
IsNew = !EnableCache || !currentVersions.Any(v => v.AssemblyName == name) || currentVersions.FirstOrDefault(v => v.AssemblyName == name).Version != version
});
}
return assemblyVersions;
}
[OperationContract]
byte[] GetAssembly(string assemblyName)
{

if (string.IsNullOrWhiteSpace(assemblyName)) throw new ArgumentNullException("assemblyName");
List<AssemblyInformation> assemblyVersions = new List<AssemblyInformation>();
XElement document = XDocument.Parse(File.ReadAllText(appData + "Assemblies.xml")).Root;
XElement assembly = document.Elements().FirstOrDefault(a => a.Attribute("Name").Value == assemblyName);
if (assembly == null) throw new FileNotFoundException("Assembly " + assembly + " was not found");
string source = assembly.Attribute("Source").Value;
return File.ReadAllBytes(appData + source);
}
When configuring the service make sure that you either increase the service timeout or enable dynamic compression. It is necessary in the case that the dynamic module is large and the
This is how the Assemblies.xml looks like
<Assemblies>
<Assembly Name="SampleModule.SilverlightControl1" Version="1.0.0.0" Source="SampleModule.SilverlightControl1.dll" />
</Assemblies>
In the Silverlight client, depending on the IsNew flag on the list of assemblies, the client can download the required dynamic modules.
All the dynamic modules that have been downloaded can be stored in Isolated storage of the application along with its versions.
Following is a code snippet demonstating on how to save the assembly to the isolated storage and versions
private void SaveAssembly(AssemblyInformation assembly, byte[] data)
{

using (IsolatedStorageFile store = IsolatedStorageFile.GetUserStoreForApplication())
{
string file = assembly.AssemblyName + ".dll";
using (IsolatedStorageFileStream fileStream = store.OpenFile(file, FileMode.OpenOrCreate, FileAccess.ReadWrite))
fileStream.Write(data, 0, data.Length);
}
}
private void SaveVersions(List assemblies)
{

using (IsolatedStorageFile store = IsolatedStorageFile.GetUserStoreForApplication())
{
using (IsolatedStorageFileStream stream = store.OpenFile("Version.xml", FileMode.Create, FileAccess.Write))
{
DataContractSerializer serializer = new DataContractSerializer(typeof(List));
XmlWriter writer = XmlWriter.Create(stream, null);
serializer.WriteObject(writer, assemblies);
writer.Flush();
}
}
}
One thing you must take care is that, the default quota for Isolated Storage is 1MB. This quota can be increased by requesting for more quota in an user instantiated event like button click. Take note that the user may decline your request for increase in storage quota.
using (IsolatedStorageFile store = IsolatedStorageFile.GetUserStoreForApplication())
{

store.IncreaseQuotaTo(1024 * 1024 * 10);
}
Summarizing, I have added a service to load the required dynamic modules along with versioning. I have also optimized the performance by client side caching using Isolated storage.

Further Improvements
Well having come so far, we can still go a long way. here are somethings that can be done.
  • In place of just simple versions, the versioning scheme can also use a time stamp of the dynamic module to load a recent dynamic module. this can come in handy when you want to optionally provide updates to your modules on demand.
  • Create a control which takes the required assembly and type name to load that module for you. You can thus even give a design time loading so that you can preview your changes when you want without having to provide a new release.
In my future posts, I would be demonstrating how to navigate to a page contained in a dynamic assembly. Currently this is not supported in silverlight 4 and there is a very simple solution to this problem. So check back later for more on this and other topics.

Related Links

Wednesday, March 2, 2011

Dynamic loading of Assemblies

When you build your silverlight application, there arises a point where your xap is a couple of MB(s) in size.  To improve your applications download experience you may decide to split your application into different modules.
In this regard, I would advise you to keep only one application with its output as a xap, all the rest should be class library projects.

In this post I will explain the method of loading such dynamic modules into your application. For this sample, I have used three projects namely,

  • SampleApp as the main navigation project,
  • SampleModule as the dynamic assembly,
  • SampleApp.Web as the host for SampleApp

At first, create a sample control in the SampleModule project, lets call it SilverlightControl1. Add a simple text block with some static text.
<Grid x:Name="LayoutRoot" Background="#EEEEEE">
<TextBlock Text="Sample Control in Sample Module" FontSize="13" VerticalAlignment="Center" HorizontalAlignment="Center"/>
</Grid>

Now, build your SampleModule and add a zip of the SampleModule.dll in the ClientBin folder in the Host project.


In the SampleApp project, open the Home.xaml.cs file.(I am assuming that you have used the default template for a Silverlight Navigation Application provided by Visual Studio).
We would now add come code to the OnNavigatedTo method which will load our dynamic module.

protected override void OnNavigatedTo(NavigationEventArgs e)
{

if (App.Assemblies.Any(a => a.FullName.StartsWith("SampleModule")))
{
var module = App.Assemblies.FirstOrDefault(a => a.FullName.StartsWith("SampleModule"));
PageScrollViewer.Content = module.CreateInstance("SampleModule.SilverlightControl1");
}
else
{
WebClient client = new WebClient();
client.OpenReadCompleted += new OpenReadCompletedEventHandler(client_OpenReadCompleted);
client.OpenReadAsync(new Uri("SampleModule.zip", UriKind.Relative));
}
}
void client_OpenReadCompleted(object sender, OpenReadCompletedEventArgs e)
{
var resourceInfo = Application.GetResourceStream(new StreamResourceInfo(e.Result, "application/x-zip-compressed"), new Uri("SampleModule.dll", UriKind.Relative));
AssemblyPart asmPart = new AssemblyPart();
Assembly asm = asmPart.Load(resourceInfo.Stream);
PageScrollViewer.Content = asm.CreateInstance("SampleModule.SilverlightControl1");
App.Assemblies.Add(asm);
}

The above code performs two basic tasks, at first it loads your module using a Web Client and then creates the instance of your control using the module it has already downloaded.I also copy the downloaded assembly in a global assemblies list, so that it can be referenced later when required. Here I have hard coded the module and controls names, you can load by any configuration method available to you.

This code is a basic skeleton and should be used as a reference purpose. You may need to add some error handling and show a delay to the user while the module is being downloaded.

Further Improvements

Further Improvements can be made to this code so that it is clean and modular. The first being, the code needs to be ported to a class which takes certain arguments like assembly name, source url, Control type name etc. Then the class can also save the assembly in isolated storage, instead of it being stored in memory.
I would provide more insights into this topic in future posts.
For more on this topic see Dynamic loading of Assembles II

Related Links


Complete Source Code : DynamicXap.zip

Saturday, February 26, 2011

Accessing data grid row from an event


When using a Data grid in Silverlight, there comes a situation when you want to get the row(or cell) that contains your text box, hyperlink button or any other control. You try to see if the Data Grid has a property like Rows or something which can give you the handle of the current row. Many people do not know is that the DataGridRow class has a static method GetRowContainingElement which takes the control that you have placed in that row and returns you that row object.
So, consider you have a button in some column of a row, now add an event handler for the click event of the button. The following code describes the way to get the clicked row and its related objects.
private void Button_Click(object sender, RoutedEventArgs e)
{

//Get clicked row
var dataGridrow = DataGridRow.GetRowContainingElement(sender as FrameworkElement);
//Or get clicked index
var roIndex = DataGridRow.GetRowContainingElement(sender as FrameworkElement).GetIndex();
//Or if you need any column of clicked row
//Suppose column1 contains a TextBox
var textBox = myDataGrid.Columns[1].GetCellContent(dataGridrow) as TextBox;
}
It is not necessary to use the GetRowContainingElement method in a click event any event that you have subscribed will do the task.

Tuesday, February 8, 2011

Creating a collapsible panel using storyboard

Every time when you want to create a pane that can collapse or expand, you have to write either a Storyboard in xaml or some other animation logic. This can be a tedious task and has many pitfalls. Some of them being
  1. Change in width of the pane requires rewiring of the storyboard.
  2. Consistency in the collapse/expand duration of the pane.
  3. Flexibility in changing the pane from vertical to horizontal.
To solve all of these and many more problems that may arise we need to build a custom PaneManager that will do this for us when required.
At first we must create a class in your Silverlight application, lets call it PaneManager, with the following members
public class PaneManager
{
#region Public Members
public TimeSpan Interval { get; set; }
public double Increment { get; set; }
public double MinValue { get; set; }
public double MaxValue { get; set; }
public Grid Grid { get; set; }
public int Index { get; set; }
public GridUnitType GridUnitType { get; set; }
public Orientation Alignment { get; set; }
#endregion
}
Let us go over each member in detail.
  • Interval - This defines the duration to wait between successive calls to make the pane transition.
  • Increment - This is the value by which the pane's width or height must change.
  • MinValue - This defines the minimum threshold of the pane's width or height.
  • MaxValue- This defines the maximum threshold of the pane's width or height.
  • Grid - This is the parent Grid that contains the desired pane.
  • Index - This is the index of the row or column containing the pane.
  • GridUnitType - this is the unit of measurement of the Grid's row/column.
  • Alignment - This specifies whether the pane transition is to be done on a row or column.
We will also need to add the following members and events to the PaneManager class
#region Private Members
private Storyboard _storyboard = new Storyboard();
#endregion
#region Public Event
public event EventHandler Completed
{
add { _storyboard.Completed += value; }
remove { _storyboard.Completed -= value; }
}
#endregion
We have until now created the basic structure of the PaneManager without adding any functionality as such. To make this class usable,

Tuesday, February 1, 2011

DispatcherTimer vs Storyboard


Many of you must have heard and used the Dispatcher Timer class in Silverlight for all sorts of things. One common usage is for animation purpose, which is an incorrect practice.
Timers are not guaranteed to execute exactly when the time interval occurs, but they are guaranteed to not execute before the time interval occurs. The Dispatcher Timer is also influenced by the UI Thread, so if any heavy rendering is to be done can cause you animation to be rigid and many a times slow.
Silverlight also has a class called Storyboard which can solve these issues and is a better solution than the Dispatcher Timer. The Storyboard has simple properties like TargetProperty, TartgetName which specify which property of which element you would like to animate. The Storyboard supports several animations namely, Color Animation, Double Animation, Point Animation andObject Animation Using Key Frames
Using a Storyboard in XAML


<StackPanel>
  <StackPanel.Resources>
    <!-- Animates the rectangle's opacity. -->
    <Storyboard x:Name="myStoryboard">
      <DoubleAnimation
        Storyboard.TargetName="MyAnimatedRectangle"
        Storyboard.TargetProperty="Opacity"
        From="1.0" To="0.0" Duration="0:0:1"
        AutoReverse="True" RepeatBehavior="Forever" />
    </Storyboard>
  </StackPanel.Resources>

  <Rectangle
    x:Name="MyAnimatedRectangle"
    Width="100" Height="100" Fill="Blue" />
</StackPanel>
Heres a link to create an Animation in Procedural Code if you need.


In Conclusion
I would suggest avoid using the Dispatcher Timer whenever possible. If you have any queries, you can get back to me.


Related Links