Recommended

Skip Navigation LinksHome / Search

Search

 
Results Per Page

Found 136 results for Tutorials.
Date between: <not defined> and <not defined>
Search in: News , Articles , Tips , Shows , Showcase , Books

Page 
Prev
Order by Publish Date   Ascending Title   Rating  

  • 12 comments  /  posted by  Nikolay Raychev  on  Apr 14, 2008 (more than a year ago)

    Introduction

    To use the GridSplitter you should be familiar with the Grid control. It is a control that allows the user to resize dynamically the width or height of the Grid cells.

    See also:
    Grid Article

    Overview

    The following example demonstrates how to use the GridSplitter:

    We want to have two cells whose width can be redistributed. The blue line can be moved left or right when clicking on it, holding the mouse button and dragging. Thus the neighbor cells can be resized.

    The XAML code:



  • 24 comments  /  posted by  Martin Mihaylov  on  Apr 14, 2008 (more than a year ago)

    Update: The source codes and the information in this article are compatible with Silverlight 2 RTW.

    Introduction

    In this tutorial we will provide brief introduction in the usage of the image control. It’s not very complicated, but there are a few interesting things we can find out about it.

    Overview

    For our examples we will use the turtle from the Sample Images in Windows. Here is the first example:

    <Grid x:Name="Layout" Background="Black" Width="300" Height="200">
        <Image x:Name="MyImage" Source="/Images/GiantSeaTurtle.jpg"></Image>
    </
    Grid>

     

    In it we use the Source property of the Image control.

  • 19 comments  /  posted by  Nikolay Raychev  on  Apr 14, 2008 (more than a year ago)

    Introduction

    The Grid is a layout control used as a container for other Silverlight controls. It acts like a table in HTML but there are many differences in the markup representation.

    See also:
    Silverlight Layout controls
    Canvas Article
    StackPanel Article
    GridSplitter Article

    Overview

    The following example demonstrates how to use a Grid and how to create rows and columns:

    We want to have the following table structure:

    The most important thing about the Grid is how to define its RowDefinitions and ColumnDefinitions collections and how to specify to which row and column every control in the Grid belongs.

    Here is the XAML code:

  • 11 comments  /  posted by  Martin Mihaylov  on  Apr 09, 2008 (more than a year ago)

    Update: The source codes and the information in this article are compatible with Silverlight 2 RTW.

     

    Introduction

    In this article we are going to take a look at one of the layout controls in Silverlight 2 Beta 1 – the Stack Panel. The name is not a coincidence. This panel behaves like a Stack. The controls are ordered one after another. The default order direction is vertical, but it can be changed to horizontal too.  Though this is just a panel after all and we will use it for placing and ordering our controls in the Silverlight player.

    Overview

    So, this is the Stack Panel:

        <StackPanel x:Name="Layout"></StackPanel>

     Let’s fill it with some controls.

  • 7 comments  /  posted by  Nikolay Raychev  on  Apr 06, 2008 (more than a year ago)

    Introduction

    Layout controls are Silverlight controls which act as containers of other controls. Their main purpose is the positioning and arranging of their child controls. There are several layout controls: Canvas, StackPanel and Grid and TabPanel.

    See also:
    Canvas Article
    StackPanel Article
    Grid Article

    Overview

    All layout controls derive from the basic abstract class Panel.

    There are also four more descendants of the Panel Class: DataGridCellsPresenter, DataGridColumnHeadersPresenter, DataGridDetailsPresenter, DataGridRowsPresenter. Their purpose is the positioning of elements in a DataGrid template. They are not standalone controls.

    Layout controls inherit the Children collection of type UIElementCollection. Since all elements in this collection are UIElement objects and the Panel itself derives from UIElement layout controls can be nested in one another without limitation.

    The following example demonstrates the nesting:

    Note: to understand this example you should be familiar with all layout controls: Canvas, StackPanel and Grid

    We want to have the following meaningless result (I don’t like giving real world examples, I just want to show you how nesting of layout controls works.):

  • 13 comments  /  posted by  Nikolay Raychev  on  Apr 06, 2008 (more than a year ago)

    Introduction

    The Canvas is the simplest layout control used as a container for other Silverlight controls. The inner controls are positioned absolutely towards its left and top sides.

    See also:
    Silverlight Layout controls
    Grid Article
    StackPanel Article

    Overview

    The following example demonstrates the use of the Canvas:

    We want to have a rectangle positioned 100 pixels from the left side and 50 pixels from the top side:

    The child controls of the Canvas are positioned absolutely towards its left and top sides by their “Canvas.Left” and “Canvas.Top” attached properties.

    Here is the XAML code:


Page 
Prev
Help us make SilverlightShow even better. 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 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)