1 / 15

Working with Silverlight Controls

Working with Silverlight Controls. 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.

cian
Download Presentation

Working with Silverlight Controls

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Working with Silverlight Controls

  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 Layout Controls • 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. Hierarchy of Panel Class

  5. Logical DOM structure

  6. Visual DOM

  7. Stack Panel • 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”

  8. 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- bottomcolumnand 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 isoneof the most flexible and commonly used layout containers. • Canvas Allows elements to be positioned absolutely using

  9. Border

  10. Wrap Panel • 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.

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

  12. Grid Layout • 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 ColumnDefinitionscollection

  13. THANK YOU

More Related