Recommended

Skip Navigation LinksHome / Search

Search

 
Results Per Page

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

Page 
Prev
  • 1
  • ...
  • 13
  • 14
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:



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

    In response to Joe’s comment on the Canvas article about how the Canvas control deals with the Measure/Arrange process when it is laid out by a parent Panel:

    It seems that during Measure/Arrange process the child Canvas will take zero width and height provided these properties are not set, even if it contains some controls. Here is a little example:

    XAML:

    <UserControl x:Class="CanvasInCanvas.Page"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Width="400" Height="300">
        <Canvas x:Name="cnvControlHolder" Background="White" Height="300" Width="400">
            <Canvas x:Name="cnvInner" Canvas.Top="10" Canvas.Left="10" Background="Blue">
                <Button x:Name="btnHello" Content="Hello Joe :)" Canvas.Top="0" Canvas.Left="0" Margin="10"></Button>
            </Canvas>
        </Canvas>
    </UserControl>

    We don’t see the Blue background of the inner Canvas because its size is zero.

  • 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
  • 1
  • ...
  • 13
  • 14
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)