Click here to Skip to main content
13,256,716 members (50,773 online)
Click here to Skip to main content


25 bookmarked
Posted 19 Oct 2009

A Simple Solution to Some Problems with Asynchrony in Silverlight

, 9 Mar 2010
A small, extensible suite of classes that elegantly solve some common problems involving asynchrony and event handling that tend to occur when Silverlight and WCF are used together.
<UserControl x:Class="TaskManagerDemo.Controls.InProgressDialog"
    MinWidth="170" MinHeight="155">
    <Grid x:Name="LayoutRoot" Background="White">
            <RowDefinition Height="10" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="10" />
            <ColumnDefinition Width="10" />
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="10" />
            <ColumnDefinition Width="130" />
        <TextBlock x:Name="Title" Foreground="Black" FontSize="17" Margin="0,0,0,5" HorizontalAlignment="Left" VerticalAlignment="Center" Grid.Column="1" Grid.Row="1" Text="In Progress..." />
        <Border Grid.Row="2" Margin="10,0,0,0" Grid.Column="0" Grid.ColumnSpan="3" Height="1" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" BorderBrush="Black"  BorderThickness="1" />
        <TextBlock x:Name="Message" FontSize="12" Margin="0,5,0,0" HorizontalAlignment="Left"  Grid.Column="1" Grid.Row="3" Foreground="Black"  Text="Data is loading..." />
        <custom:WaitSpinner x:Name="ProgressImage" Width="50" Height="50" Grid.Row="0" Grid.RowSpan="5" Grid.Column="4" HorizontalAlignment="Center" VerticalAlignment="Center"/>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

George Henry 1954
Software Developer (Senior) Concur
United States United States
George Henry has worked as a software developer for more than 20 years. He is currently employed by Concur in Bellevue, Washington, USA.

You may also be interested in...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.171114.1 | Last Updated 9 Mar 2010
Article Copyright 2009 by George Henry 1954
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid