Presentation is loading. Please wait.

Presentation is loading. Please wait.

Mahender Sarangam Having close to 5 years of experience. Working as a Senior Software Engineer in United Health Group. Good Knowledge on C#, ASP.NET,

Similar presentations


Presentation on theme: "Mahender Sarangam Having close to 5 years of experience. Working as a Senior Software Engineer in United Health Group. Good Knowledge on C#, ASP.NET,"— Presentation transcript:

1

2 Mahender Sarangam Having close to 5 years of experience. Working as a Senior Software Engineer in United Health Group. Good Knowledge on C#, ASP.NET, Silverlight, WPF,SQL Server, Team Foundation Server(TFS) and SharePoint Technology.

3  Silverlight window can hold only a single element.  To fit in more than one element, we create a container in Silverlight window and then add other elements to that container  All SilverLight controls inherits from System.Windows.Controls.Panel class

4

5

6

7

8  Places elements in a horizontal or vertical stack.  This layout container is typically used for small sections of a larger, more complex page.  The Stack Panel is one of the simplest layout containers  Orientation=“Horizontal/Vertical”

9 NameDescription Horizontal Alignmenthow a child is positioned inside a layout container Vertical Alignmenthow a child is positioned inside a layout container when there’s extra vertical space available MarginUse Margin to add a bit of breathing room around an element Min Width and Min HeightThese properties set the minimum dimensions of an element Max Width and Max HeightIf the container has more room available, the element won’t beenlarged beyond these bounds, even if the Horizontal Alignment andVertical Alignment properties are set to Stretch Width and Heightproperties to explicitly set the size of an element.

10  WrapPanel :Places elements in a series of wrapped lines. In horizontal orientation, the WrapPanel lays items out in a row from left to right and then onto subsequent lines. In vertical orientation, the WrapPanel lays out items in a top-to- bottomcolumn and then uses additional columns to fit the remaining items. Thislayout container is available in the Silverlight Tookit.  DockPanel : Aligns elements against an entire edge of the container. This layout container is available in the Silverlight Tookit.  Grid Arranges elements in rows and columns according to an invisible table. This isone of the most flexible and commonly used layout containers.  Canvas Allows elements to be positioned absolutely using

11 NameDescription Background Sets the background color behind all contents inside border control. BorderBrushFills the Border’s with Solid color Border Thickness Sets the width (in pixels) of the border on each side. The BorderThickness property holds an instance of the System.Windows.Thickness structure, with separate components for the top, bottom, left, and right edges. Corner Radius Rounds the corners of your border. The greater the Corner Radius, the more dramatic the rounding effect is PaddingAdds spacing between the border and the content inside. MarginMargin adds spacing outside the border

12  The Wrap Panel lays out controls in the available space, one line or column at a time.  By default, the WrapPanel.Orientation property is set to Horizontal; controls are arranged from left to right and then on subsequent rows.

13  The Silverlight Toolkit also includes a layout container called the Dock Panel.  For Example:

14  It acts like a table in HTML but there are many differences in the markup representation  The Grid is the most powerful layout container in Silverlight.  It’s the default root layout element for all the UserControl and Page templates, and is the one control that allows you to easily resize (not rescale) content to take up the space available to the plug-in  RowDefinitions collection stores the definitions of the rows of a Grid and the Grid also enables to create a ColumnDefinition element. This element must be defined within the ColumnDefinitions collection

15


Download ppt "Mahender Sarangam Having close to 5 years of experience. Working as a Senior Software Engineer in United Health Group. Good Knowledge on C#, ASP.NET,"

Similar presentations


Ads by Google