Click here to Skip to main content
15,880,608 members
Articles / Web Development / CSS

Building a 3-Tier App with Silverlight 3, .NET RIA Services, and Azure Table Storage

Rate me:
Please Sign up or sign in to vote.
4.89/5 (28 votes)
11 Jul 2009CDDL19 min read 163.7K   1.7K   148  
This article presents the techniques and caveats of building a 3-tire Azure hosted application using Silverlight 3 (presentation tier), .NET RIA services (business logic and data access), and Windows Azure Table (data storage).
<UserControl x:Class="Hanray.Azurelight.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
    xmlns:dg="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data"
	xmlns:app="clr-namespace:Hanray.Azurelight.Service" 
	Loaded="MainPage_Loaded">

	<Grid x:Name="LayoutRoot" Background="{StaticResource ApplicationBackgroundColorBrush}">
		<Grid Style="{StaticResource NavigationContainerStyle}">

            <Border Style="{StaticResource NavigationBorderStyle}">
            
                <StackPanel Style="{StaticResource NavigationPanelStyle}">
					
					<Button Click="NavButton_Click" Tag="/Views/HomePage.xaml" Content="home" 
                            Style="{StaticResource PageLinkStyle}"/>
                    <Button Click="NavButton_Click" Tag="/Views/AboutPage.xaml" Content="about" 
                            Style="{StaticResource PageLinkStyle}"/>
                
                </StackPanel>
            
            </Border>
            
            <Border Style="{StaticResource BrandingBorderStyle}">
            
                <StackPanel Style="{StaticResource BrandingPanelStyle}">

                    <!--<TextBlock Text="your." Style="{StaticResource BrandingTextNormalStyle}"/>
                    <TextBlock Text="application." Style="{StaticResource BrandingTextHighlightStyle}"/>
                    <TextBlock Text="name" Style="{StaticResource BrandingTextNormalStyle}"/>-->

					<Button Click="NavButton_Click" Tag="/Views/Feedback.xaml" Content="Feedback" 
                            Style="{StaticResource PageLinkStyle}"/>
					<Button Click="onNavigateToURL" Tag="http://www.codeproject.com/KB/silverlight/Azurelight.aspx" Content="Article" 
                            Style="{StaticResource PageLinkStyle}"/>
					<Button Click="onNavigateToURL" Tag="mailto:modestyZ@hotmail.com?subject=About Building a 3-Tier App with Silverlight 3, .NET RIA Services and Azure Table Storage" Content="Contact" 
                            Style="{StaticResource PageLinkStyle}"/>
				</StackPanel>
                
            </Border>
            
        </Grid>

        <Border Style="{StaticResource FrameContainerStyle}">

            <Border Style="{StaticResource FrameInnerBorderStyle}">

                <navigation:Frame x:Name="navFrame" Source="{Binding Path=TopFrameSource}" 
								  Navigated="navFrame_Navigated"
                                  HorizontalContentAlignment="Stretch"
                                  VerticalContentAlignment="Stretch"
                                  Padding="15,10,15,10"
                                  Background="White"/>
            </Border>

        </Border>
	</Grid>
</UserControl>

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.

License

This article, along with any associated source code and files, is licensed under The Common Development and Distribution License (CDDL)


Written By
Technical Lead
United States United States
https://github.com/modesty

https://www.linkedin.com/in/modesty-zhang-9a43771

https://twitter.com/modestyqz

Comments and Discussions