Recommended

Skip Navigation LinksHome / Articles / Learn / QuickStarts

QuickStarts

+
Page 
Items Resolution

  • 7 comments  /  posted by  Chris Anderson  on  Mar 26, 2009 (more than a year ago)

    Introduction

    In Part 6 of this series I looked at implementing a means for displaying reports that appear to be within the application and permitting them to be printed. In each of the articles so far I have discussed major components of line of business application development, but have spent little or no time in styling the application in anticipation of writing an article dedicated to doing so. However that article has turned into seven articles which will become a mini-series within this existing series.

    Share


  • 9 comments  /  posted by  Nikolay Raychev  on  Mar 25, 2009 (more than a year ago)

    Introduction

    Animation Easing are built in animation functions in Silverlight 3. They include several commonly used animations effects.

    Overview

    I'll describe in details how you can use the BackEase animation. Imagine that you want to move an Ellipse from the top to the bottom of a Canvas. You just create a Storyboard with DoubleAnimation as follows:

    <UserControl x:Class="AnimationEasings.MainPage" 
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"   
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"   
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"   
        mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480" 
        Width="150" Height="450">  
        <UserControl.Resources> 
            <Storyboard x:Name="sbBackEaseIn">  
                <DoubleAnimation From="50" To="400" Duration="0:0:10" 
                    Storyboard.TargetName="circle" 
                    Storyboard.TargetProperty="(Canvas.Top)">  
                </DoubleAnimation> 
            </Storyboard> 
        </UserControl.Resources> 
        <Canvas x:Name="LayoutRoot" 
                Background="LightYellow">  
            <Ellipse x:Name="circle" Width="50" 
                Height="50" Canvas.Top="0" Canvas.Left="50">  
                <Ellipse.Fill> 
                    <ImageBrush x:Name="backgroundImageBrush" 
                        Stretch="UniformToFill">  
                        <ImageBrush.ImageSource> 
                            <BitmapImage x:Name="bmpBackground" 
    UriSource="http://www.silverlightshow.net/Storage/Users/nikolayraychev/sls_icon.jpg">  
                            </BitmapImage> 
                        </ImageBrush.ImageSource> 
                    </ImageBrush> 
                </Ellipse.Fill> 
            </Ellipse> 
        </Canvas> 
    </UserControl> 

    Code behind:

    public MainPage()  
    {  
        InitializeComponent();  
     
        this.sbBackEaseIn.Begin();  

    OK, but what if you want to make the ellipse move up for a while and after that move down.

    Share
  • 38 comments  /  posted by  Nikolay Raychev  on  Mar 19, 2009 (more than a year ago)

    Introduction

    The SaveFileDialog is a new dialog control in Silverlight 3 which allows the user to save a file on the client machine.

    Overview

    To demonstrate the common use of the SaveFileDialog I’ll give an example:

    When you click on the button a dialog window appears which allows you to save a file.

    Share
  • 27 comments  /  posted by  Martin Mihaylov  on  Mar 18, 2009 (more than a year ago)

    Introduction

    This article continues the series of articles about the .NET RIA Services framework and Silverlight 3. The scope of it is the DomainService class, which is used to create the business logic of the application and how it combines with the ADO.NET Data Model and the Enitity framework.

    Here is a link to the live demo at this stage and the source code. Note that they will be updated with each article! ;)

    Here are links to the previous parts of the series:

    Creating applications with .NET RIA Service  Part 1 - Introduction

    Creating applications with .NET RIA Service  Part 2 - Creating the project

    Share
  • 3 comments  /  posted by  Martin Mihaylov  on  Mar 18, 2009 (more than a year ago)

    Introduction

    With the help of the .NET RIA Services framework we are now capable of creating business applications in Silverlight easy and fast. But before starting we should download and install the latest versions of Silverlight 3 and .NET RIA Services. In this article you'll find the needed links and a brief walkthrough of creating the project for our first Silverlight application using the .NET RIA Services Framework, as well as some highlights and explanations about the created project.

    Here is a link to the live demo at this stage and the source code. Note that they will be updated with each article! ;)

    Here is a link to the first part of the series:

    Creating applications with .NET RIA Service  Part 1 - Introduction

    .NET RIA Services and Silverlight 3

    Before beginning to code your first application, you have to download and install the Silverlight 3 Tools for Visual Studio, which contain the tools, the runtime and the SDK.

    Share
  • 12 comments  /  posted by  Martin Mihaylov  on  Mar 18, 2009 (more than a year ago)

    Several months ago the guys from Microsoft announced that they are developing a framework for developing Business applications under Silverlight with the codename Alexandria and now it's a reality! On the MIX'09 session a release of it under the name .NET RIA Services was announced.  The possibilities that the framework are really great and allow the Silverlight developers to easily develop business application in a much easier and faster way.

    I am starting this series of articles in order to introduce the main features of the .NET RIA Services framework.

    Share
  • 15 comments  /  posted by  Nikolay Raychev  on  Mar 18, 2009 (more than a year ago)

    Introduction

    A cool new feature in Silverlight 3 is the ability to run Silverlight applications out of the browser which resembles a desktop application. Only a few configuration steps are needed to enable your application to run offline.

    See also:
    Tip: Detecting Network Change in Silverllight 3 Application

    Overview

    To enable this feature you only need to open the AppManifest.xml file which can be found in the Properties folder and add
    some settings as follows:

    <Deployment xmlns="http://schemas.microsoft.com/client/2007/deployment" 
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
      EntryPointAssembly="TaskList" 
      EntryPointType="TaskList.App">  
      <Deployment.Parts> 
      </Deployment.Parts> 
      <Deployment.OutOfBrowserSettings> 
        <OutOfBrowserSettings  
          ShortName="Task List">  
          <OutOfBrowserSettings.WindowSettings> 
            <WindowSettings Title="Offline Task List" /> 
          </OutOfBrowserSettings.WindowSettings> 
          <OutOfBrowserSettings.Blurb> 
            Allows saving your tasks offline  
          </OutOfBrowserSettings.Blurb> 
        </OutOfBrowserSettings> 
      </Deployment.OutOfBrowserSettings> 
    </Deployment> 
     
    Share
  • 12 comments  /  posted by  Nikolay Raychev  on  Mar 18, 2009 (more than a year ago)

    Introduction

    A new feature in Silverlight 3 is the Perspective Transforms. With its help you can simulate rotating an object in 3D space. Note that this is not a real 3D, Silverlight does not support 3D yet.

    Overview

    Let's start with a little demo: 


    And let's describe the things step by step. You have an UIElement, in our situation an image. The X axis of the element is from left to right, the Y axis is going up and down and the Z axis is going in and out of the surface of the image.

    If we want to rotate the image on the X axis we are just setting the RotationX of the UIElement.Projection as follows:

     

    <Image x:Name="imgTarantula" Width="400" 
        HorizontalAlignment="Center" VerticalAlignment="Center"   
        Source="http://terraristic.net/photos/Acanthoscurria_geniculata/Acanthoscurria_geniculata_1.jpg">  
        <Image.Projection>
            <PlaneProjection RotationX="45"></PlaneProjection>
        </Image.Projection>
    </Image> 

    And we have the following result:

    Share
  • Model – View – ViewModel in Silverlight

    29 comments  /  posted by  Pencho Popadiyn  on  Mar 11, 2009 (more than a year ago)

    1. Introduction

    Whatever software application you want to create, the most important problem that must be solved is the tight coupling. Mixing one layer with another is a very common mistake and it is the main reason for your application to be tightly coupled. For example: as a practical example in this article I will create a simple data entry application, which purpose is to load, create, edit, delete and save data. The most straightforward way to create the application is to put everything in the user interface (handling the button’s click events and writing the code there). It is the easiest way but it is far from the best. This will produce a low quality code and high complexity. And when the things are tightly coupled, one change can lead you into chasing breaking changes in the whole code. So the most important thing is to keep the layers separate, one layer – one responsibility. Yes, it is true, that creating an application with separate tiers requires additional work, but this may save you a headache in the future.

    The most famous solutions and approaches (patterns) for creating a multi layer application are the MVC and MVP patterns. Since Silverlight does not require reinventing the wheel, these patterns and practices can be applied with great success when you create a Silverlight application. In previous articles I showed you how the Model-View-Presenter (MVP) pattern and the Model-View-Controller (MVC) pattern can be used in Silverlight. Today I decided to continue and to present you another pattern – it is the Model-View-ViewModel (MVVM). MVVM is tailor-made for WPF and it is an adaptation of the MVC and MVP.

    View live demo

    Download source

    Read more ...
    Share
  • 4 comments  /  posted by  Thomas Kirchmair  on  Jan 27, 2009 (more than a year ago)

    Note: This article is submitted by Thomas Kirchmair for Silverlight: Write and Win contest.Thanks a lot, Thomas! Hello All, Please drop a comment if you like it.

    1. Introduction

    My recent aim in coding with Microsoft's Silverlight is to support ASP.NET developers by solving common ASP.NET- and HTML-problems scenarios easily with Silverlight applications and tools. The project of this article here shows my idea of solving the annoying ASP.NET-DropDownList bandwidth- and ViewState-problem with a huge amount of option items inside the control.

    Using the normal ASP.NET-DropDownList with enabled ViewState is quite simple and easy, but the time you fill your ASP.NET-DropDownList with a great amount of option items.

    Share

Page 
Help us make SilverlightShow even better and win a free t-shirt. Whether you'd like to suggest a change in the structure, content organization, section layout or any other aspect of SilverlightShow appearance - we'd love to hear from you! Need a material (article, tutorial, or other) on a specific topic? Let us know and SilverlightShow content authors will work to have that prepared for you. (hide this)