SlideShare a Scribd company logo
Control Template in SilverlightMahenderSenior Software EngineerUnited Health Group
Mahender SarangamHaving 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. MCTS Certified in Web Applications.
Control TemplateA Control Template specifies the visual structure and visual behavior of a control.Customize the look and feel of a control by giving it a new Control TemplateWhen you create a Control Template, you replace the appearance of an existing control without changing its functionality.A Control Template must have only one root element that derives from Framework Element
Control templates: All Silverlight controls are look less, which means they have hardwired functionality, but their appearance is defined separately through the control template. Replace the default template with something new, and you can revamp basic controls such as buttons, check   boxes, radio buttons, and even windows.          Before 				After
Content PresenterWhen you define a Control Template, you must tell Silverlight where to place that Content. To help you do this task, Silverlight provides two Framework Element instances: Content Presenter and Items Presenter.If we are template content controls like button, label etc, we have to use content Presenter to show content
Item PresenterItem Presenter is the placeholder to show the each item in item panel ,it is similar to content presenter. But Item Presenter are used for control like Item Control . For example , we use item presenter for control like list box ,Data grid etc.For Scroll viewer, since the item has to move , we use ScrollContentPresenter for showing contents in Scrollviewer.
Control Templates and Data templates DifferencesData Template is used to create a visualization of a non-visual object, such as a business object. Control Template supplies a visual representation of a UI control, such as a Button or List View.A Data Template, therefore, is used to provide visual structure for underlying data, while a Control Template has nothing to do with underlying data and simply provides visual layout for the control itself.A Control Template will generally only contain Template Binding expressions, binding back to the properties on the control itself, while a Data Template will contain standard Binding expressions, binding to the properties of its Data Context
DEMO
Thank you!

More Related Content

PDF
Salesforce lightning design system
PPTX
Mastering the Lightning Framework - Part 1
PPTX
Introduction Asp.Net Core, MVC, Docker (Linux), Postman and Swagger
PPTX
Rits Brown Bag - TypeScript
PDF
Leveling up with AngularJS
PPTX
Stephen Kennedy Silverlight 3 Deep Dive
PPTX
Introduction to lightning components
PPT
NCSDUG May 2011 - Serials in work flows tips and discussion
Salesforce lightning design system
Mastering the Lightning Framework - Part 1
Introduction Asp.Net Core, MVC, Docker (Linux), Postman and Swagger
Rits Brown Bag - TypeScript
Leveling up with AngularJS
Stephen Kennedy Silverlight 3 Deep Dive
Introduction to lightning components
NCSDUG May 2011 - Serials in work flows tips and discussion

What's hot (16)

PPT
ActiveModeler Avantage Overview E
PPTX
Lightning Component - Components, Actions and Events
PPTX
SP2013 for Developers - Chris O'Brien
PPTX
Rits Brown Bag - Salesforce Lightning
PPTX
Mastering the Lightning Framework - Part 2
PPTX
Kolkata Salesforce Developer Group Online - Summer '17
PPTX
Lightning Components Workshop
PPTX
Mule with facebook
PDF
How to tdd your mvp
PPTX
Team Site Portfolio
DOCX
Maintain data in custom business object
PPTX
How to embed reporting into your asp.net core web applications
PPTX
Point and Click App Building Workshop
PPTX
sf tools from community
ODP
What is MVC?
PPTX
Automatic documentation with mule
 
ActiveModeler Avantage Overview E
Lightning Component - Components, Actions and Events
SP2013 for Developers - Chris O'Brien
Rits Brown Bag - Salesforce Lightning
Mastering the Lightning Framework - Part 2
Kolkata Salesforce Developer Group Online - Summer '17
Lightning Components Workshop
Mule with facebook
How to tdd your mvp
Team Site Portfolio
Maintain data in custom business object
How to embed reporting into your asp.net core web applications
Point and Click App Building Workshop
sf tools from community
What is MVC?
Automatic documentation with mule
 
Ad

Viewers also liked (7)

PPTX
Data binding in silverlight
PPTX
Html bridge
PPTX
Silverlight converters
PPTX
Introduction to silverlight
PPTX
Resources and styles
PPTX
Introduction to silverlight control 4
PPTX
Silverlight datatemplate
Data binding in silverlight
Html bridge
Silverlight converters
Introduction to silverlight
Resources and styles
Introduction to silverlight control 4
Silverlight datatemplate
Ad

Similar to Silverlight control template (20)

PPTX
New Introductionfor Flash Designers
PPTX
Building appsinsilverlight4 part_1
PPT
WPF Line of Business Control Templates Styles
PPTX
PPT10 - ICT-PRESENTATION SOFTWARE pptx.pptx
PDF
Silverlight 4
PPT
Plantilla Power Point para presentaciones impresionantes.
PPT
The essential power_point_template_for_killer_slideshare_presentations
PPTX
Parts Of A Website.pptx
PPT
The essential power_point_template_for_killer_slideshare_presentations
PDF
MICROSOFT POWERPOINT AND USES(BEST)..pdf
PPT
Test for wolfie the essential power_point_template_for_killer_slideshare_pres...
PPT
Presentation wpf
PPT
Introduction to XAML and WPF
PPT
Wpf Under The Hood Engines
PPT
Microsoft power point
PDF
An Extensible Presentation Tool For Flexible Human-Information Interaction
PPTX
Creating Rich, Dynamic User Interfaces with Silverlight 2
PPT
Microsoft power point
PPTX
Windows phone and azure
PDF
.NET Conf 2020 - Hot Topics Desktop Development
New Introductionfor Flash Designers
Building appsinsilverlight4 part_1
WPF Line of Business Control Templates Styles
PPT10 - ICT-PRESENTATION SOFTWARE pptx.pptx
Silverlight 4
Plantilla Power Point para presentaciones impresionantes.
The essential power_point_template_for_killer_slideshare_presentations
Parts Of A Website.pptx
The essential power_point_template_for_killer_slideshare_presentations
MICROSOFT POWERPOINT AND USES(BEST)..pdf
Test for wolfie the essential power_point_template_for_killer_slideshare_pres...
Presentation wpf
Introduction to XAML and WPF
Wpf Under The Hood Engines
Microsoft power point
An Extensible Presentation Tool For Flexible Human-Information Interaction
Creating Rich, Dynamic User Interfaces with Silverlight 2
Microsoft power point
Windows phone and azure
.NET Conf 2020 - Hot Topics Desktop Development

More from msarangam (17)

PPTX
File access
PPTX
Silverlight command
PPTX
Silverlight as a desktop application
PPTX
Routed events in silverlight
PPTX
Ria services
PPTX
File access
PPTX
Printing in sl
PPTX
Navigation application in silverlight
PPTX
Data binding in silverlight
PPTX
Mvvm pattern
PPTX
Introduction to silverlight control 3
PPTX
Dependency property
PPTX
Data validation in silverlight
PPTX
Background thread
PPTX
Attached property
PPTX
Application in detail
PPTX
Wcf ria services
File access
Silverlight command
Silverlight as a desktop application
Routed events in silverlight
Ria services
File access
Printing in sl
Navigation application in silverlight
Data binding in silverlight
Mvvm pattern
Introduction to silverlight control 3
Dependency property
Data validation in silverlight
Background thread
Attached property
Application in detail
Wcf ria services

Recently uploaded (20)

PPTX
SOPHOS-XG Firewall Administrator PPT.pptx
PPTX
Big Data Technologies - Introduction.pptx
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
Approach and Philosophy of On baking technology
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
cuic standard and advanced reporting.pdf
PPTX
1. Introduction to Computer Programming.pptx
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPTX
A Presentation on Artificial Intelligence
PDF
Network Security Unit 5.pdf for BCA BBA.
SOPHOS-XG Firewall Administrator PPT.pptx
Big Data Technologies - Introduction.pptx
MIND Revenue Release Quarter 2 2025 Press Release
Building Integrated photovoltaic BIPV_UPV.pdf
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Advanced methodologies resolving dimensionality complications for autism neur...
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Mobile App Security Testing_ A Comprehensive Guide.pdf
Approach and Philosophy of On baking technology
“AI and Expert System Decision Support & Business Intelligence Systems”
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Encapsulation_ Review paper, used for researhc scholars
cuic standard and advanced reporting.pdf
1. Introduction to Computer Programming.pptx
Unlocking AI with Model Context Protocol (MCP)
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
gpt5_lecture_notes_comprehensive_20250812015547.pdf
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
A Presentation on Artificial Intelligence
Network Security Unit 5.pdf for BCA BBA.

Silverlight control template

  • 1. Control Template in SilverlightMahenderSenior Software EngineerUnited Health Group
  • 2. Mahender SarangamHaving 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. MCTS Certified in Web Applications.
  • 3. Control TemplateA Control Template specifies the visual structure and visual behavior of a control.Customize the look and feel of a control by giving it a new Control TemplateWhen you create a Control Template, you replace the appearance of an existing control without changing its functionality.A Control Template must have only one root element that derives from Framework Element
  • 4. Control templates: All Silverlight controls are look less, which means they have hardwired functionality, but their appearance is defined separately through the control template. Replace the default template with something new, and you can revamp basic controls such as buttons, check boxes, radio buttons, and even windows. Before After
  • 5. Content PresenterWhen you define a Control Template, you must tell Silverlight where to place that Content. To help you do this task, Silverlight provides two Framework Element instances: Content Presenter and Items Presenter.If we are template content controls like button, label etc, we have to use content Presenter to show content
  • 6. Item PresenterItem Presenter is the placeholder to show the each item in item panel ,it is similar to content presenter. But Item Presenter are used for control like Item Control . For example , we use item presenter for control like list box ,Data grid etc.For Scroll viewer, since the item has to move , we use ScrollContentPresenter for showing contents in Scrollviewer.
  • 7. Control Templates and Data templates DifferencesData Template is used to create a visualization of a non-visual object, such as a business object. Control Template supplies a visual representation of a UI control, such as a Button or List View.A Data Template, therefore, is used to provide visual structure for underlying data, while a Control Template has nothing to do with underlying data and simply provides visual layout for the control itself.A Control Template will generally only contain Template Binding expressions, binding back to the properties on the control itself, while a Data Template will contain standard Binding expressions, binding to the properties of its Data Context