SlideShare a Scribd company logo
What’s New in Silverlight 5Mohammad Elsheimyhttp://JustLikeAMagic.comhttp://WithDotNet.nethttp://twitter.com/Elsheimy
OutlineSilverlight 5
XAML Changes
Control and Text Improvements
Graphics and Media Changes
Elevated-Trust Changes
Other Improvements
Get StartedSilverlight 5Currently in Beta version
Has bugs, not yet feature-complete
Some features aren’t available in the Beta
No go-live license
First announced in PDC 2010
Beta released at MIX11
Final release soon this yearGoalsImproving performance
Getting closer to WPF
Enabling line-of-business scenarios
Better development experienceCairo at Night, EgyptXAML Changes
XAML ChangesImplicit Data Templates
Ancestor RelativeSource
Binding in Styles
Markup Extensions
XAML Debugging
Layout TransitionsImplicit Data TemplatesAssociated to a data type instead of a specific control
Applies to any control that…
trying to display the data type specified
have a templatable content
defined in the scope of the template
Define outside the control (e.g. as a resource)
Use DataType to specify the data type
Use binding to communicate with data
Typically used with collection controls (e.g. ListBox, ComboBox, etc.)Demo: Implicit Data Templates
Ancestor RelativeSourceAllows binding to a property on a parent control
Binding Outside the box
Implements the WPF feature
Use Binding.RelativeSource to specify the source in the tree
Use AncestorType to specify parent type
Use AncestorLevel to specify its level in the tree<TextBlockText="{BindingTag, RelativeSource={RelativeSourceAncestorType=Grid, AncestorLevel=2}}"/>
Demo: Ancestor RelativeSource
Binding in StylesAllows changing styles during runtime
Implements the WPF feature
Binding is supported directly in style setters
Use the standard binding syntax
All binding features supported (e.g. converters, formatters, etc.)<Setter Property="Foreground" Value="{StaticResource theBrush}" />
Demo: Binding in Styles
Markup ExtensionsCreate your own markup extensions
Allows you to run custom code at XAML parsing time
Examples of markup extensions: {Binding}, {RelativeSource}, etc.
Much simpler than attached properties
More concise syntax<TextBlock Text="{my:SumExtension FirstNumber=1, SecondNumber=2}" />
Markup ExtensionsImplement IMarkupExtension<T> (System.XAML)
Where T is the type of the data that you wish to return (must be reference type)
Provide properties for parameters
Implement ProvideValue() to return the valuepublicclassSumExtension : IMarkupExtension<object>{publicint FirstNumber { get; set; }publicint SecondNumber { get; set; }publicobjectProvideValue(IServiceProvider serviceProvider)  {return FirstNumber + SecondNumber;  }}
Demo: Markup Extensions
XAML DebuggingAllows breakpoints in bindings
Works by placing a breakpoint inside the binding in XAML
Stops on Push and Pull to the control
Use VS debugging tools to get binding details
Breakpoint condition and filters can be set
Past approaches:
Hunt through the output window for any binding failure information
Create a debug-only value converter, assign it to all bindings, and put the breakpoint inside itDemo: XAML Debugging

More Related Content

PDF
Implementing Messaging Patterns in JavaScript using the OpenAjax Hub
PDF
XMPP Intro 1101 - 2008
PDF
Yumekaigi kawaguchi
PDF
It alignment
PPT
Ail
PDF
SHAPET
DOC
Delhi ict tcil
PPTX
Just in time
Implementing Messaging Patterns in JavaScript using the OpenAjax Hub
XMPP Intro 1101 - 2008
Yumekaigi kawaguchi
It alignment
Ail
SHAPET
Delhi ict tcil
Just in time

Viewers also liked (12)

PDF
Punjab & sind bank rfp
PPTX
Visual Resumes
PPTX
Cookable
PPT
The swimming
PDF
Test presentation for upload to slideshare
PPT
Un cicerone tra i banchi
PPT
I sette peccati capitali
PPT
Communication skills enhancement
PDF
Marshaling with C# Pocket Reference
PPTX
Urban Logistics
PPTX
Microsoft Silverlight - An Introduction
DOCX
Paper. la ingeniería de whats app
Punjab & sind bank rfp
Visual Resumes
Cookable
The swimming
Test presentation for upload to slideshare
Un cicerone tra i banchi
I sette peccati capitali
Communication skills enhancement
Marshaling with C# Pocket Reference
Urban Logistics
Microsoft Silverlight - An Introduction
Paper. la ingeniería de whats app
Ad

Similar to What's New in Silverlight 5 (20)

PPTX
WPF 4 Series: Getting Started
PPTX
Wpf4 july2010
PPT
Silverlight 2
PPT
Silverlight Training
PPT
FMS Administration Seminar
PPT
What's New for Presentation in Visual Studio 2008 SP1
PPT
Re-use Your Skills and Code to Expand the Reach of Your Apps with Silverlight
PPTX
Silverlight 5 whats new overview
PPT
Powershell Seminar @ ITWorx CuttingEdge Club
PPTX
Mix 2010 twilight
PPTX
Building appsinsilverlight4 part_1
PPT
MSDN Unleashed: WPF Demystified
PPT
Flex In Portal Final
PPT
Migration from ASP to ASP.NET
PPTX
DODN2009 - Jump Start Silverlight
PPT
PPT
21. Application Development and Administration in DBMS
PPT
A Lap Around Visual Studio 2010
PPT
D22 portlet development with open source frameworks
PPT
D22 Portlet Development With Open Source Frameworks
WPF 4 Series: Getting Started
Wpf4 july2010
Silverlight 2
Silverlight Training
FMS Administration Seminar
What's New for Presentation in Visual Studio 2008 SP1
Re-use Your Skills and Code to Expand the Reach of Your Apps with Silverlight
Silverlight 5 whats new overview
Powershell Seminar @ ITWorx CuttingEdge Club
Mix 2010 twilight
Building appsinsilverlight4 part_1
MSDN Unleashed: WPF Demystified
Flex In Portal Final
Migration from ASP to ASP.NET
DODN2009 - Jump Start Silverlight
21. Application Development and Administration in DBMS
A Lap Around Visual Studio 2010
D22 portlet development with open source frameworks
D22 Portlet Development With Open Source Frameworks
Ad

More from Mohammad Elsheimy (20)

PDF
Mohammad Elsheimy - Solution Developer (CV)
PDF
PM Notebook
PDF
PM Notebook - Appendix H - Formula Sheet
PDF
PM Notebook - Appendix G - Interpersonal/Team/Soft Skills
PDF
PM Notebook - Appendix F - Forecasting Methods
PDF
PM Notebook - Appendix E - Estimating Techniques
PDF
PM Notebook - Appendix D - Decision-Making Techniques
PDF
PM Notebook - Appendix C - Data Representation Tools
PDF
PM Notebook - Appendix B - Data Gathering Techniques
PDF
PM Notebook - Chapter 14 - Professional and Social Responsibility
PDF
PM Notebook - Chapter 13 - Stakeholder Management
PDF
PM Notebook - Chapter 12 - Procurement Management
PDF
PM Notebook - Chapter 11: Risk Management
PDF
PM Notebook - Chapter 10: Communication Management
PDF
PM Notebook - Chapter 9: Resources Management
PDF
PM Notebook - Chapter 8: Quality Management
PDF
PM Notebook - Chapter 7 - Cost Management
PDF
PM Notebook - Chapter 6 - Schedule Management
PDF
PM Notebook - Chapter 5 - Scope Management
PDF
PM Notebook - Chapter 4: Integration Management
Mohammad Elsheimy - Solution Developer (CV)
PM Notebook
PM Notebook - Appendix H - Formula Sheet
PM Notebook - Appendix G - Interpersonal/Team/Soft Skills
PM Notebook - Appendix F - Forecasting Methods
PM Notebook - Appendix E - Estimating Techniques
PM Notebook - Appendix D - Decision-Making Techniques
PM Notebook - Appendix C - Data Representation Tools
PM Notebook - Appendix B - Data Gathering Techniques
PM Notebook - Chapter 14 - Professional and Social Responsibility
PM Notebook - Chapter 13 - Stakeholder Management
PM Notebook - Chapter 12 - Procurement Management
PM Notebook - Chapter 11: Risk Management
PM Notebook - Chapter 10: Communication Management
PM Notebook - Chapter 9: Resources Management
PM Notebook - Chapter 8: Quality Management
PM Notebook - Chapter 7 - Cost Management
PM Notebook - Chapter 6 - Schedule Management
PM Notebook - Chapter 5 - Scope Management
PM Notebook - Chapter 4: Integration Management

Recently uploaded (20)

PPTX
A Presentation on Artificial Intelligence
PPTX
MYSQL Presentation for SQL database connectivity
PDF
cuic standard and advanced reporting.pdf
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Getting Started with Data Integration: FME Form 101
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PPTX
1. Introduction to Computer Programming.pptx
PPTX
SOPHOS-XG Firewall Administrator PPT.pptx
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Approach and Philosophy of On baking technology
PDF
Encapsulation theory and applications.pdf
PPTX
Group 1 Presentation -Planning and Decision Making .pptx
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
A Presentation on Artificial Intelligence
MYSQL Presentation for SQL database connectivity
cuic standard and advanced reporting.pdf
Per capita expenditure prediction using model stacking based on satellite ima...
Getting Started with Data Integration: FME Form 101
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
1. Introduction to Computer Programming.pptx
SOPHOS-XG Firewall Administrator PPT.pptx
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Mobile App Security Testing_ A Comprehensive Guide.pdf
20250228 LYD VKU AI Blended-Learning.pptx
Advanced methodologies resolving dimensionality complications for autism neur...
Encapsulation_ Review paper, used for researhc scholars
Building Integrated photovoltaic BIPV_UPV.pdf
Approach and Philosophy of On baking technology
Encapsulation theory and applications.pdf
Group 1 Presentation -Planning and Decision Making .pptx
Programs and apps: productivity, graphics, security and other tools
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...

What's New in Silverlight 5