Recommended

Skip Navigation LinksHome / Search

Search

 
Results Per Page

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

Page 
Order by Publish Date   Ascending Title   Rating  

  • 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 
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)