SlideShare a Scribd company logo
What’s New in Silverlight 5




     Learn More @ http://www.learnnowonline.com
        Copyright © by Application Developers Training Company
What’s New In Silverlight 5




        Learn More @ http://www.learnnowonline.com
           Copyright © by Application Developers Training Company
What’s New In Silverlight 5
 • Data Binding Improvements




          Learn More @ http://www.learnnowonline.com
             Copyright © by Application Developers Training Company
What’s New In Silverlight 5
 • Data Binding Improvements
 • Text




          Learn More @ http://www.learnnowonline.com
             Copyright © by Application Developers Training Company
What’s New In Silverlight 5
 • Data Binding Improvements
 • Text
 • Controls




          Learn More @ http://www.learnnowonline.com
             Copyright © by Application Developers Training Company
What’s New In Silverlight 5
 •   Data Binding Improvements
 •   Text
 •   Controls
 •   Media




            Learn More @ http://www.learnnowonline.com
               Copyright © by Application Developers Training Company
What’s New In Silverlight 5
 •   Data Binding Improvements
 •   Text
 •   Controls
 •   Media
 •   Trusted Applications




            Learn More @ http://www.learnnowonline.com
               Copyright © by Application Developers Training Company
Data binding improvements




       Learn More @ http://www.learnnowonline.com
          Copyright © by Application Developers Training Company
Data binding improvements
• Data binding debugging




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Data binding improvements
• Data binding debugging
• Ancestor RelativeSource binding




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Data binding improvements
• Data binding debugging
• Ancestor RelativeSource binding
• Implicit data templates




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Data binding improvements
•   Data binding debugging
•   Ancestor RelativeSource binding
•   Implicit data templates
•   UpdateSourceTrigger=PropertyChange
    d




           Learn More @ http://www.learnnowonline.com
              Copyright © by Application Developers Training Company
Data binding improvements
• Data binding debugging
• Ancestor RelativeSource binding
• Implicit data templates
• UpdateSourceTrigger=PropertyChange
  d
• Binding in style setters



        Learn More @ http://www.learnnowonline.com
           Copyright © by Application Developers Training Company
Data binding improvements
• Data binding debugging
• Ancestor RelativeSource binding
• Implicit data templates
• UpdateSourceTrigger=PropertyChange
  d
• Binding in style setters
• Custom markup extensions

        Learn More @ http://www.learnnowonline.com
           Copyright © by Application Developers Training Company
Data binding improvements




       Learn More @ http://www.learnnowonline.com
          Copyright © by Application Developers Training Company
Data binding improvements
• These updates are very welcome
  changes for developers using MVVM in
  their applications




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Model-View-ViewModel




      Learn More @ http://www.learnnowonline.com
         Copyright © by Application Developers Training Company
Model-View-ViewModel
• It’s a separation pattern, like MVC or
  MVP




          Learn More @ http://www.learnnowonline.com
             Copyright © by Application Developers Training Company
Model-View-ViewModel
• It’s a separation pattern, like MVC or
  MVP
• Improves structure / separation of
  concerns




          Learn More @ http://www.learnnowonline.com
             Copyright © by Application Developers Training Company
Model-View-ViewModel
• It’s a separation pattern, like MVC or
  MVP
• Improves structure / separation of
  concerns
• Enables better designer / developer
  workflow



          Learn More @ http://www.learnnowonline.com
             Copyright © by Application Developers Training Company
Model-View-ViewModel
• It’s a separation pattern, like MVC or
  MVP
• Improves structure / separation of
  concerns
• Enables better designer / developer
  workflow
• Enhances testability


          Learn More @ http://www.learnnowonline.com
             Copyright © by Application Developers Training Company
Model-View-ViewModel
• It’s a separation pattern, like MVC or
  MVP
• Improves structure / separation of
  concerns
• Enables better designer / developer
  workflow
• Enhances testability
• Made possible by the robust data
          Learn More @ http://www.learnnowonline.com
             Copyright © by Application Developers Training Company
MVVM Structure




       Learn More @ http://www.learnnowonline.com
          Copyright © by Application Developers Training Company
MVVM Structure
    View
    ••XAML
    ••Data bindings

    View Model
    ••Model of the View (or View of the Model)
    ••Properties and commands


    Model
    ••Domain model / business logic
    ••Services, persistence, everything else



           Learn More @ http://www.learnnowonline.com
              Copyright © by Application Developers Training Company
Connecting the pieces of




       Learn More @ http://www.learnnowonline.com
          Copyright © by Application Developers Training Company
Connecting the pieces of
 • View -> ViewModel




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Connecting the pieces of
 • View -> ViewModel
   • ViewModel exposes properties and
    commands that the view binds to




          Learn More @ http://www.learnnowonline.com
             Copyright © by Application Developers Training Company
Connecting the pieces of
 • View -> ViewModel
   • ViewModel exposes properties and
     commands that the view binds to
   • ViewModel implements
     INotifyPropertyChanged to relay change
     notifications to View




           Learn More @ http://www.learnnowonline.com
              Copyright © by Application Developers Training Company
Connecting the pieces of
 • View -> ViewModel
   • ViewModel exposes properties and
     commands that the view binds to
   • ViewModel implements
     INotifyPropertyChanged to relay change
     notifications to View
   • The View’s DataContext is bound to the
     ViewModel, making all of it’s properties
     and commands available to the entire

           Learn More @ http://www.learnnowonline.com
              Copyright © by Application Developers Training Company
Connecting the pieces of




       Learn More @ http://www.learnnowonline.com
          Copyright © by Application Developers Training Company
Connecting the pieces of
 • ViewModel -> View




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Connecting the pieces of
 • ViewModel -> View
   • ViewModel contains domain objects from
    the Model and exposes relevant portions
    of it to the View




          Learn More @ http://www.learnnowonline.com
             Copyright © by Application Developers Training Company
Connecting the pieces of
 • ViewModel -> View
   • ViewModel contains domain objects from
     the Model and exposes relevant portions
     of it to the View
   • ViewModel calls services to fetch or save
     data to the Model




           Learn More @ http://www.learnnowonline.com
              Copyright © by Application Developers Training Company
Key elements of MVVM




       Learn More @ http://www.learnnowonline.com
          Copyright © by Application Developers Training Company
Key elements of MVVM
• INotifyPropertyChanged




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Key elements of MVVM
• INotifyPropertyChanged
  • PropertyChanged event




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Key elements of MVVM
• INotifyPropertyChanged
  • PropertyChanged event
• ICommand




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Key elements of MVVM
• INotifyPropertyChanged
  • PropertyChanged event
• ICommand
  • Execute




          Learn More @ http://www.learnnowonline.com
              Copyright © by Application Developers Training Company
Key elements of MVVM
• INotifyPropertyChanged
  • PropertyChanged event
• ICommand
  • Execute
  • CanExecute




          Learn More @ http://www.learnnowonline.com
              Copyright © by Application Developers Training Company
Key elements of MVVM
• INotifyPropertyChanged
  • PropertyChanged event
• ICommand
  • Execute
  • CanExecute
  • CanExecuteChanged event




          Learn More @ http://www.learnnowonline.com
              Copyright © by Application Developers Training Company
DEMO


       Learn More @ http://www.learnnowonline.com
          Copyright © by Application Developers Training Company
MVVM Basics

DEMO


              Learn More @ http://www.learnnowonline.com
                 Copyright © by Application Developers Training Company
Data binding debugging




       Learn More @ http://www.learnnowonline.com
          Copyright © by Application Developers Training Company
Data binding debugging
• Allows breakpoints on data binding
  statements




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Data binding debugging
• Allows breakpoints on data binding
  statements
• Exposes information on the data
  binding source, errors, etc…




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Data binding debugging
• Allows breakpoints on data binding
  statements
• Exposes information on the data
  binding source, errors, etc…
• Makes troubleshooting data binding
  issues really easy!



         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
DEMO


       Learn More @ http://www.learnnowonline.com
          Copyright © by Application Developers Training Company
Data binding debugging

DEMO


            Learn More @ http://www.learnnowonline.com
               Copyright © by Application Developers Training Company
Ancestor RelativeSource




       Learn More @ http://www.learnnowonline.com
          Copyright © by Application Developers Training Company
Ancestor RelativeSource
 • New binding mode brought over from
   WPF




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Ancestor RelativeSource
 • New binding mode brought over from
   WPF
 • Allows a child element to bind to
   properties on its parent




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Ancestor RelativeSource
 • New binding mode brought over from
   WPF
 • Allows a child element to bind to
   properties on its parent
 • Very useful within item templates in an
   items control



          Learn More @ http://www.learnnowonline.com
             Copyright © by Application Developers Training Company
DEMO


       Learn More @ http://www.learnnowonline.com
          Copyright © by Application Developers Training Company
Ancestor RelativeSource binding

DEMO


             Learn More @ http://www.learnnowonline.com
                Copyright © by Application Developers Training Company
Implicit data templates




        Learn More @ http://www.learnnowonline.com
           Copyright © by Application Developers Training Company
Implicit data templates
 • Another binding feature from WPF




          Learn More @ http://www.learnnowonline.com
             Copyright © by Application Developers Training Company
Implicit data templates
 • Another binding feature from WPF
 • Defines a template to be used
   whenever Silverlight tries to display a
   particular type




           Learn More @ http://www.learnnowonline.com
              Copyright © by Application Developers Training Company
Implicit data templates
 • Another binding feature from WPF
 • Defines a template to be used
   whenever Silverlight tries to display a
   particular type
 • In Silverlight 4, we had to explicitly
   specify a template for our custom
   types



           Learn More @ http://www.learnnowonline.com
              Copyright © by Application Developers Training Company
Implicit data templates
 • Another binding feature from WPF
 • Defines a template to be used
   whenever Silverlight tries to display a
   particular type
 • In Silverlight 4, we had to explicitly
   specify a template for our custom
   types
 • Very useful when binding to a list of
   different subclasses – not limited to a
           Learn More @ http://www.learnnowonline.com
              Copyright © by Application Developers Training Company
DEMO


       Learn More @ http://www.learnnowonline.com
          Copyright © by Application Developers Training Company
Implicit data templates

DEMO


             Learn More @ http://www.learnnowonline.com
                Copyright © by Application Developers Training Company
New UpdateSourceTrigger




       Learn More @ http://www.learnnowonline.com
          Copyright © by Application Developers Training Company
New UpdateSourceTrigger
• Adds “PropertyChanged” option to
  available UpdateSourceTriggers – also
  from WPF




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
New UpdateSourceTrigger
• Adds “PropertyChanged” option to
  available UpdateSourceTriggers – also
  from WPF
• When used, the source of the binding
  (on our ViewModel) is updated
  whenever the property on the View is
  changed


         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
DEMO


       Learn More @ http://www.learnnowonline.com
          Copyright © by Application Developers Training Company
PropertyChanged UpdateSourceTrigger

DEMO


            Learn More @ http://www.learnnowonline.com
               Copyright © by Application Developers Training Company
Custom markup extensions




       Learn More @ http://www.learnnowonline.com
          Copyright © by Application Developers Training Company
Custom markup extensions
• Markup extensions are the parts of
  XAML that are surrounded by {curly
  braces}




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Custom markup extensions
• Markup extensions are the parts of
  XAML that are surrounded by {curly
  braces}
  • Binding, StaticResource,
   DynamicResource, etc…




          Learn More @ http://www.learnnowonline.com
             Copyright © by Application Developers Training Company
Custom markup extensions
• Markup extensions are the parts of
  XAML that are surrounded by {curly
  braces}
  • Binding, StaticResource,
   DynamicResource, etc…
• They provide a value – one that is often
  not known until runtime


          Learn More @ http://www.learnnowonline.com
             Copyright © by Application Developers Training Company
Custom markup extensions
• Markup extensions are the parts of
  XAML that are surrounded by {curly
  braces}
  • Binding, StaticResource,
   DynamicResource, etc…
• They provide a value – one that is often
  not known until runtime
• Silverlight 5 now allows us to create

          Learn More @ http://www.learnnowonline.com
             Copyright © by Application Developers Training Company
DEMO


       Learn More @ http://www.learnnowonline.com
          Copyright © by Application Developers Training Company
Custom markup extensions

DEMO


           Learn More @ http://www.learnnowonline.com
              Copyright © by Application Developers Training Company
Binding in Style Setters




        Learn More @ http://www.learnnowonline.com
           Copyright © by Application Developers Training Company
Binding in Style Setters
 • Styles are useful and widely used to
   define a consistent look and feel to our
   applications




          Learn More @ http://www.learnnowonline.com
             Copyright © by Application Developers Training Company
Binding in Style Setters
 • Styles are useful and widely used to
   define a consistent look and feel to our
   applications
 • Until now, binding in the setters within
   styles were now allowed




           Learn More @ http://www.learnnowonline.com
              Copyright © by Application Developers Training Company
Binding in Style Setters
 • Styles are useful and widely used to
   define a consistent look and feel to our
   applications
 • Until now, binding in the setters within
   styles were now allowed
 • Silverlight 5 allows us to create binding
   statements within stlyes


           Learn More @ http://www.learnnowonline.com
              Copyright © by Application Developers Training Company
DEMO


       Learn More @ http://www.learnnowonline.com
          Copyright © by Application Developers Training Company
Binding in style setters

DEMO


              Learn More @ http://www.learnnowonline.com
                 Copyright © by Application Developers Training Company
What’s New In Silverlight 5




        Learn More @ http://www.learnnowonline.com
           Copyright © by Application Developers Training Company
What’s New In Silverlight 5
 • Data Binding Improvements




          Learn More @ http://www.learnnowonline.com
             Copyright © by Application Developers Training Company
What’s New In Silverlight 5
 • Data Binding Improvements
 • Text




          Learn More @ http://www.learnnowonline.com
             Copyright © by Application Developers Training Company
What’s New In Silverlight 5
 • Data Binding Improvements
 • Text
 • Controls




          Learn More @ http://www.learnnowonline.com
             Copyright © by Application Developers Training Company
What’s New In Silverlight 5
 •   Data Binding Improvements
 •   Text
 •   Controls
 •   Media




            Learn More @ http://www.learnnowonline.com
               Copyright © by Application Developers Training Company
What’s New In Silverlight 5
 •   Data Binding Improvements
 •   Text
 •   Controls
 •   Media
 •   Trusted Applications




            Learn More @ http://www.learnnowonline.com
               Copyright © by Application Developers Training Company
Text improvements




       Learn More @ http://www.learnnowonline.com
          Copyright © by Application Developers Training Company
Text improvements
• Character spacing and line height




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Text improvements
• Character spacing and line height
• TextOptions – pixel snapping




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Text improvements
• Character spacing and line height
• TextOptions – pixel snapping
• OpenType support




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
Text improvements
•   Character spacing and line height
•   TextOptions – pixel snapping
•   OpenType support
•   Linked text blocks for multi-column
    and flowing text




           Learn More @ http://www.learnnowonline.com
              Copyright © by Application Developers Training Company
Character spacing and line




        Learn More @ http://www.learnnowonline.com
           Copyright © by Application Developers Training Company
Character spacing and line
 • “CharacterSpacing” and “LineHeight”
   properties




          Learn More @ http://www.learnnowonline.com
             Copyright © by Application Developers Training Company
Character spacing and line
 • “CharacterSpacing” and “LineHeight”
   properties
   • TextBox, TextBlock, RichTextBox,
    RichTextBlock




           Learn More @ http://www.learnnowonline.com
              Copyright © by Application Developers Training Company
Character spacing and line
 • “CharacterSpacing” and “LineHeight”
   properties
   • TextBox, TextBlock, RichTextBox,
    RichTextBlock
 • CharacterSpacing calculated based
   formula:



           Learn More @ http://www.learnnowonline.com
              Copyright © by Application Developers Training Company
Character spacing and line
 • “CharacterSpacing” and “LineHeight”
   properties
   • TextBox, TextBlock, RichTextBox,
     RichTextBlock
 • CharacterSpacing calculated based
   formula:
   Spacing (in pixels) = (font size * Value) / 1000




                Learn More @ http://www.learnnowonline.com
                    Copyright © by Application Developers Training Company
Character spacing and line
 • “CharacterSpacing” and “LineHeight”
   properties
   • TextBox, TextBlock, RichTextBox,
     RichTextBlock
 • CharacterSpacing calculated based
   formula:
   Spacing (in pixels) = (font size * Value) / 1000

 • LineHeight is the spacing between

                Learn More @ http://www.learnnowonline.com
                    Copyright © by Application Developers Training Company
Linked text




        Learn More @ http://www.learnnowonline.com
           Copyright © by Application Developers Training Company
Linked text
 • RichTextBlocks can now specify a
   RichTextBlockOverflow element that
   text will flow to when full




          Learn More @ http://www.learnnowonline.com
             Copyright © by Application Developers Training Company
Linked text
 • RichTextBlocks can now specify a
   RichTextBlockOverflow element that
   text will flow to when full
 • RichTextBlockOverflow elements can
   specify additional overflow containers




          Learn More @ http://www.learnnowonline.com
             Copyright © by Application Developers Training Company
Linked text
 • RichTextBlocks can now specify a
   RichTextBlockOverflow element that
   text will flow to when full
 • RichTextBlockOverflow elements can
   specify additional overflow containers
 • Limited only to read-only
   RichTextBlocks


          Learn More @ http://www.learnnowonline.com
             Copyright © by Application Developers Training Company
DEMO


       Learn More @ http://www.learnnowonline.com
          Copyright © by Application Developers Training Company
Linked text, character spacing and line height

DEMO


             Learn More @ http://www.learnnowonline.com
                Copyright © by Application Developers Training Company
TextOptions




       Learn More @ http://www.learnnowonline.com
          Copyright © by Application Developers Training Company
TextOptions
• TextFormattingMode




        Learn More @ http://www.learnnowonline.com
           Copyright © by Application Developers Training Company
TextOptions
• TextFormattingMode
  • Ideal, Display (pixel snapping)




          Learn More @ http://www.learnnowonline.com
             Copyright © by Application Developers Training Company
TextOptions
• TextFormattingMode
  • Ideal, Display (pixel snapping)
• TextHintingMode




          Learn More @ http://www.learnnowonline.com
             Copyright © by Application Developers Training Company
TextOptions
• TextFormattingMode
  • Ideal, Display (pixel snapping)
• TextHintingMode
  • Fixed, Animated




          Learn More @ http://www.learnnowonline.com
             Copyright © by Application Developers Training Company
TextOptions
• TextFormattingMode
  • Ideal, Display (pixel snapping)
• TextHintingMode
  • Fixed, Animated
• TextRenderingMode




          Learn More @ http://www.learnnowonline.com
             Copyright © by Application Developers Training Company
TextOptions
• TextFormattingMode
  • Ideal, Display (pixel snapping)
• TextHintingMode
  • Fixed, Animated
• TextRenderingMode
  • Auto, Aliased, Greyscale, ClearType




          Learn More @ http://www.learnnowonline.com
             Copyright © by Application Developers Training Company
OpenType Support




       Learn More @ http://www.learnnowonline.com
          Copyright © by Application Developers Training Company
OpenType Support
• Ligatures – glyphs with more than one
  letter




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
OpenType Support
• Ligatures – glyphs with more than one
  letter
• Contextual Alternates




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
OpenType Support
• Ligatures – glyphs with more than one
  letter
• Contextual Alternates
• Stylistic Sets




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
OpenType Support
• Ligatures – glyphs with more than one
  letter
• Contextual Alternates
• Stylistic Sets
• Variants – superscript and subscript




         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
OpenType Support
• Ligatures – glyphs with more than one
  letter
• Contextual Alternates
• Stylistic Sets
• Variants – superscript and subscript
• Fractions



         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
OpenType Support
• Ligatures – glyphs with more than one
  letter
• Contextual Alternates
• Stylistic Sets
• Variants – superscript and subscript
• Fractions
• Much more in the Typography class!

         Learn More @ http://www.learnnowonline.com
            Copyright © by Application Developers Training Company
DEMO


       Learn More @ http://www.learnnowonline.com
          Copyright © by Application Developers Training Company
TextOptions and OpenType

DEMO


           Learn More @ http://www.learnnowonline.com
              Copyright © by Application Developers Training Company
What’s New In Silverlight 5




        Learn More @ http://www.learnnowonline.com
           Copyright © by Application Developers Training Company
What’s New In Silverlight 5
 • Data Binding Improvements




          Learn More @ http://www.learnnowonline.com
             Copyright © by Application Developers Training Company
What’s New In Silverlight 5
 • Data Binding Improvements
 • Text




          Learn More @ http://www.learnnowonline.com
             Copyright © by Application Developers Training Company
What’s New In Silverlight 5
 • Data Binding Improvements
 • Text
 • Controls




          Learn More @ http://www.learnnowonline.com
             Copyright © by Application Developers Training Company
What’s New In Silverlight 5
 •   Data Binding Improvements
 •   Text
 •   Controls
 •   Media




            Learn More @ http://www.learnnowonline.com
               Copyright © by Application Developers Training Company
What’s New In Silverlight 5
 •   Data Binding Improvements
 •   Text
 •   Controls
 •   Media
 •   Trusted Applications




            Learn More @ http://www.learnnowonline.com
               Copyright © by Application Developers Training Company
What’s New in Silverlight 5




      Learn More @ http://www.learnnowonline.com
         Copyright © by Application Developers Training Company
Learn More!




       Learn More @ http://www.learnnowonline.com
          Copyright © by Application Developers Training Company
Learn More!
• This is an excerpt from a larger course. Visit
  www.learnnowonline.com for the full details!




           Learn More @ http://www.learnnowonline.com
              Copyright © by Application Developers Training Company

More Related Content

What's hot (20)

PPTX
Managing Mobile Apps: A PhoneGap Enterprise Introduction for Marketers
arumsey
 
KEY
Building Windows 8 Metro Style Applications Using JavaScript and HTML5
LearnNowOnline
 
PDF
Integrating with Adobe Marketing Cloud - Summit 2014
Paolo Mottadelli
 
PPTX
Delivering Applications Continuously to Cloud
IBM UrbanCode Products
 
PPTX
IMMERSE 2016 IST Mark Szulc Keynote
AdobeMarketingCloud
 
PPTX
Summit 2015: Mobile App Dev and Content Management with Adobe Experience Manager
brucelefebvre
 
PDF
Overcome-3-common-aem-delivery-challenges
iCiDIGITAL
 
PPT
Vmware overview part2
zaadalhaqq
 
PDF
Scrum And Kanban (for better agile teams)
Synerzip
 
PPTX
Bluegrass digital creds 2015
Bluegrass Digital
 
PPTX
Uncovering the Latest in SharePoint Development
Eric Overfield
 
PDF
IMMERSE 2016 Introducing content fragments
AdobeMarketingCloud
 
PDF
Deployment Automation for Hybrid Cloud and Multi-Platform Environments
IBM UrbanCode Products
 
PPTX
Move past bootstrap and build our lightweight responsive framework w.v1.2
Eric Overfield
 
PDF
EVOLVE'14 | Enhance | John Fait | Add Analytics To Your AEM Apps
Evolve The Adobe Digital Marketing Community
 
PPTX
Past, Present and Future of DevOps Infrastructure
Synergetics Learning and Cloud Consulting
 
PPTX
How do you build flexible platforms that focuses on business needs? by Fahim...
AEM HUB
 
PDF
Opticon 2015-Experience Optimization in Modern Web Architecture
Optimizely
 
KEY
Creating a User Interface
LearnNowOnline
 
PPTX
Veeva iREP Overview & Dev guide
Bluegrass Digital
 
Managing Mobile Apps: A PhoneGap Enterprise Introduction for Marketers
arumsey
 
Building Windows 8 Metro Style Applications Using JavaScript and HTML5
LearnNowOnline
 
Integrating with Adobe Marketing Cloud - Summit 2014
Paolo Mottadelli
 
Delivering Applications Continuously to Cloud
IBM UrbanCode Products
 
IMMERSE 2016 IST Mark Szulc Keynote
AdobeMarketingCloud
 
Summit 2015: Mobile App Dev and Content Management with Adobe Experience Manager
brucelefebvre
 
Overcome-3-common-aem-delivery-challenges
iCiDIGITAL
 
Vmware overview part2
zaadalhaqq
 
Scrum And Kanban (for better agile teams)
Synerzip
 
Bluegrass digital creds 2015
Bluegrass Digital
 
Uncovering the Latest in SharePoint Development
Eric Overfield
 
IMMERSE 2016 Introducing content fragments
AdobeMarketingCloud
 
Deployment Automation for Hybrid Cloud and Multi-Platform Environments
IBM UrbanCode Products
 
Move past bootstrap and build our lightweight responsive framework w.v1.2
Eric Overfield
 
EVOLVE'14 | Enhance | John Fait | Add Analytics To Your AEM Apps
Evolve The Adobe Digital Marketing Community
 
Past, Present and Future of DevOps Infrastructure
Synergetics Learning and Cloud Consulting
 
How do you build flexible platforms that focuses on business needs? by Fahim...
AEM HUB
 
Opticon 2015-Experience Optimization in Modern Web Architecture
Optimizely
 
Creating a User Interface
LearnNowOnline
 
Veeva iREP Overview & Dev guide
Bluegrass Digital
 

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

PPTX
MVVM ( Model View ViewModel )
Ahmed Emad
 
PPTX
Advanced MVVM in Windows 8
Gill Cleeren
 
PPTX
Introduction to XAML and its features
Abhishek Sur
 
PPTX
The Magic of WPF & MVVM
Abhishek Sur
 
PPTX
MVVM with WPF
S V
 
PPTX
Training: MVVM Pattern
Betclic Everest Group Tech Team
 
PPTX
Mvvm in the real world tccc10
Bryan Anderson
 
PPTX
WPF with MVVM: From the Trenches
Brent Edwards
 
PPTX
My XML is Alive! An Intro to XAML
Jeremy Likness
 
PPTX
Meetup - Getting Started with MVVM Light for WPF - 11 may 2019
iFour Technolab Pvt. Ltd.
 
PPTX
Using mvvm inside mvc in domain driven design
yashar Aliabasi
 
PPTX
Adopting MVVM
John Cumming
 
PPTX
Applied MVVM in Windows 8 apps: not your typical MVVM session!
Microsoft Developer Network (MSDN) - Belgium and Luxembourg
 
PDF
Introduction To MVVM
Boulos Dib
 
PPTX
MVVM and Prism
Bilal Ahmed
 
PDF
Knockout js
Dr. Awase Khirni Syed
 
PDF
Data Binding in Silverlight
Boulos Dib
 
KEY
Introduction to ASP.NET MVC
LearnNowOnline
 
PPTX
The MVVM Pattern
Chris Charabaruk
 
PPTX
Understanding The MVVM Pattern (TechDays Belgium)
Laurent Bugnion
 
MVVM ( Model View ViewModel )
Ahmed Emad
 
Advanced MVVM in Windows 8
Gill Cleeren
 
Introduction to XAML and its features
Abhishek Sur
 
The Magic of WPF & MVVM
Abhishek Sur
 
MVVM with WPF
S V
 
Training: MVVM Pattern
Betclic Everest Group Tech Team
 
Mvvm in the real world tccc10
Bryan Anderson
 
WPF with MVVM: From the Trenches
Brent Edwards
 
My XML is Alive! An Intro to XAML
Jeremy Likness
 
Meetup - Getting Started with MVVM Light for WPF - 11 may 2019
iFour Technolab Pvt. Ltd.
 
Using mvvm inside mvc in domain driven design
yashar Aliabasi
 
Adopting MVVM
John Cumming
 
Applied MVVM in Windows 8 apps: not your typical MVVM session!
Microsoft Developer Network (MSDN) - Belgium and Luxembourg
 
Introduction To MVVM
Boulos Dib
 
MVVM and Prism
Bilal Ahmed
 
Data Binding in Silverlight
Boulos Dib
 
Introduction to ASP.NET MVC
LearnNowOnline
 
The MVVM Pattern
Chris Charabaruk
 
Understanding The MVVM Pattern (TechDays Belgium)
Laurent Bugnion
 
Ad

More from LearnNowOnline (20)

PPT
Windows 8: Shapes and Geometries
LearnNowOnline
 
PPT
SQL: Permissions and Data Protection
LearnNowOnline
 
PPT
New in the Visual Studio 2012 IDE
LearnNowOnline
 
KEY
Attributes, reflection, and dynamic programming
LearnNowOnline
 
KEY
Asynchronous Programming
LearnNowOnline
 
KEY
WPF: Working with Data
LearnNowOnline
 
KEY
A tour of SQL Server
LearnNowOnline
 
KEY
Introducing LINQ
LearnNowOnline
 
KEY
Generics
LearnNowOnline
 
KEY
Object oriented techniques
LearnNowOnline
 
KEY
Object-Oriented JavaScript
LearnNowOnline
 
KEY
SharePoint Document Management
LearnNowOnline
 
KEY
SharePoint: Introduction to InfoPath
LearnNowOnline
 
KEY
Managing site collections
LearnNowOnline
 
KEY
Web API Basics
LearnNowOnline
 
KEY
SQL Server: Security
LearnNowOnline
 
KEY
Sql 2012 development and programming
LearnNowOnline
 
KEY
KnockOutJS with ASP.NET MVC
LearnNowOnline
 
KEY
Expression Blend Motion & Interaction Design
LearnNowOnline
 
KEY
The Entity Data Model
LearnNowOnline
 
Windows 8: Shapes and Geometries
LearnNowOnline
 
SQL: Permissions and Data Protection
LearnNowOnline
 
New in the Visual Studio 2012 IDE
LearnNowOnline
 
Attributes, reflection, and dynamic programming
LearnNowOnline
 
Asynchronous Programming
LearnNowOnline
 
WPF: Working with Data
LearnNowOnline
 
A tour of SQL Server
LearnNowOnline
 
Introducing LINQ
LearnNowOnline
 
Generics
LearnNowOnline
 
Object oriented techniques
LearnNowOnline
 
Object-Oriented JavaScript
LearnNowOnline
 
SharePoint Document Management
LearnNowOnline
 
SharePoint: Introduction to InfoPath
LearnNowOnline
 
Managing site collections
LearnNowOnline
 
Web API Basics
LearnNowOnline
 
SQL Server: Security
LearnNowOnline
 
Sql 2012 development and programming
LearnNowOnline
 
KnockOutJS with ASP.NET MVC
LearnNowOnline
 
Expression Blend Motion & Interaction Design
LearnNowOnline
 
The Entity Data Model
LearnNowOnline
 
Ad

Recently uploaded (20)

PPTX
Paycifi - Programmable Trust_Breakfast_PPTXT
FinTech Belgium
 
PPTX
𝙳𝚘𝚠𝚗𝚕𝚘𝚊𝚍—Wondershare Filmora Crack 14.0.7 + Key Download 2025
sebastian aliya
 
PPSX
Usergroup - OutSystems Architecture.ppsx
Kurt Vandevelde
 
PDF
ArcGIS Utility Network Migration - The Hunter Water Story
Safe Software
 
PPTX
MARTSIA: A Tool for Confidential Data Exchange via Public Blockchain - Pitch ...
Michele Kryston
 
PDF
The Future of Product Management in AI ERA.pdf
Alyona Owens
 
PDF
Optimizing the trajectory of a wheel loader working in short loading cycles
Reno Filla
 
PDF
Redefining Work in the Age of AI - What to expect? How to prepare? Why it mat...
Malinda Kapuruge
 
PPTX
Smarter Governance with AI: What Every Board Needs to Know
OnBoard
 
PPTX
UserCon Belgium: Honey, VMware increased my bill
stijn40
 
PDF
Kubernetes - Architecture & Components.pdf
geethak285
 
PDF
The Growing Value and Application of FME & GenAI
Safe Software
 
PDF
Enhancing Environmental Monitoring with Real-Time Data Integration: Leveragin...
Safe Software
 
PPTX
MARTSIA: A Tool for Confidential Data Exchange via Public Blockchain - Poster...
Michele Kryston
 
PDF
Open Source Milvus Vector Database v 2.6
Zilliz
 
PDF
Automating the Geo-Referencing of Historic Aerial Photography in Flanders
Safe Software
 
PDF
Cracking the Code - Unveiling Synergies Between Open Source Security and AI.pdf
Priyanka Aash
 
PDF
Hello I'm "AI" Your New _________________
Dr. Tathagat Varma
 
PDF
UiPath Agentic AI ile Akıllı Otomasyonun Yeni Çağı
UiPathCommunity
 
PDF
My Journey from CAD to BIM: A True Underdog Story
Safe Software
 
Paycifi - Programmable Trust_Breakfast_PPTXT
FinTech Belgium
 
𝙳𝚘𝚠𝚗𝚕𝚘𝚊𝚍—Wondershare Filmora Crack 14.0.7 + Key Download 2025
sebastian aliya
 
Usergroup - OutSystems Architecture.ppsx
Kurt Vandevelde
 
ArcGIS Utility Network Migration - The Hunter Water Story
Safe Software
 
MARTSIA: A Tool for Confidential Data Exchange via Public Blockchain - Pitch ...
Michele Kryston
 
The Future of Product Management in AI ERA.pdf
Alyona Owens
 
Optimizing the trajectory of a wheel loader working in short loading cycles
Reno Filla
 
Redefining Work in the Age of AI - What to expect? How to prepare? Why it mat...
Malinda Kapuruge
 
Smarter Governance with AI: What Every Board Needs to Know
OnBoard
 
UserCon Belgium: Honey, VMware increased my bill
stijn40
 
Kubernetes - Architecture & Components.pdf
geethak285
 
The Growing Value and Application of FME & GenAI
Safe Software
 
Enhancing Environmental Monitoring with Real-Time Data Integration: Leveragin...
Safe Software
 
MARTSIA: A Tool for Confidential Data Exchange via Public Blockchain - Poster...
Michele Kryston
 
Open Source Milvus Vector Database v 2.6
Zilliz
 
Automating the Geo-Referencing of Historic Aerial Photography in Flanders
Safe Software
 
Cracking the Code - Unveiling Synergies Between Open Source Security and AI.pdf
Priyanka Aash
 
Hello I'm "AI" Your New _________________
Dr. Tathagat Varma
 
UiPath Agentic AI ile Akıllı Otomasyonun Yeni Çağı
UiPathCommunity
 
My Journey from CAD to BIM: A True Underdog Story
Safe Software
 

What's new in Silverlight 5

  • 1. What’s New in Silverlight 5 Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 2. What’s New In Silverlight 5 Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 3. What’s New In Silverlight 5 • Data Binding Improvements Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 4. What’s New In Silverlight 5 • Data Binding Improvements • Text Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 5. What’s New In Silverlight 5 • Data Binding Improvements • Text • Controls Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 6. What’s New In Silverlight 5 • Data Binding Improvements • Text • Controls • Media Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 7. What’s New In Silverlight 5 • Data Binding Improvements • Text • Controls • Media • Trusted Applications Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 8. Data binding improvements Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 9. Data binding improvements • Data binding debugging Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 10. Data binding improvements • Data binding debugging • Ancestor RelativeSource binding Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 11. Data binding improvements • Data binding debugging • Ancestor RelativeSource binding • Implicit data templates Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 12. Data binding improvements • Data binding debugging • Ancestor RelativeSource binding • Implicit data templates • UpdateSourceTrigger=PropertyChange d Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 13. Data binding improvements • Data binding debugging • Ancestor RelativeSource binding • Implicit data templates • UpdateSourceTrigger=PropertyChange d • Binding in style setters Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 14. Data binding improvements • Data binding debugging • Ancestor RelativeSource binding • Implicit data templates • UpdateSourceTrigger=PropertyChange d • Binding in style setters • Custom markup extensions Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 15. Data binding improvements Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 16. Data binding improvements • These updates are very welcome changes for developers using MVVM in their applications Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 17. Model-View-ViewModel Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 18. Model-View-ViewModel • It’s a separation pattern, like MVC or MVP Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 19. Model-View-ViewModel • It’s a separation pattern, like MVC or MVP • Improves structure / separation of concerns Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 20. Model-View-ViewModel • It’s a separation pattern, like MVC or MVP • Improves structure / separation of concerns • Enables better designer / developer workflow Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 21. Model-View-ViewModel • It’s a separation pattern, like MVC or MVP • Improves structure / separation of concerns • Enables better designer / developer workflow • Enhances testability Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 22. Model-View-ViewModel • It’s a separation pattern, like MVC or MVP • Improves structure / separation of concerns • Enables better designer / developer workflow • Enhances testability • Made possible by the robust data Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 23. MVVM Structure Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 24. MVVM Structure View ••XAML ••Data bindings View Model ••Model of the View (or View of the Model) ••Properties and commands Model ••Domain model / business logic ••Services, persistence, everything else Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 25. Connecting the pieces of Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 26. Connecting the pieces of • View -> ViewModel Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 27. Connecting the pieces of • View -> ViewModel • ViewModel exposes properties and commands that the view binds to Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 28. Connecting the pieces of • View -> ViewModel • ViewModel exposes properties and commands that the view binds to • ViewModel implements INotifyPropertyChanged to relay change notifications to View Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 29. Connecting the pieces of • View -> ViewModel • ViewModel exposes properties and commands that the view binds to • ViewModel implements INotifyPropertyChanged to relay change notifications to View • The View’s DataContext is bound to the ViewModel, making all of it’s properties and commands available to the entire Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 30. Connecting the pieces of Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 31. Connecting the pieces of • ViewModel -> View Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 32. Connecting the pieces of • ViewModel -> View • ViewModel contains domain objects from the Model and exposes relevant portions of it to the View Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 33. Connecting the pieces of • ViewModel -> View • ViewModel contains domain objects from the Model and exposes relevant portions of it to the View • ViewModel calls services to fetch or save data to the Model Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 34. Key elements of MVVM Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 35. Key elements of MVVM • INotifyPropertyChanged Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 36. Key elements of MVVM • INotifyPropertyChanged • PropertyChanged event Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 37. Key elements of MVVM • INotifyPropertyChanged • PropertyChanged event • ICommand Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 38. Key elements of MVVM • INotifyPropertyChanged • PropertyChanged event • ICommand • Execute Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 39. Key elements of MVVM • INotifyPropertyChanged • PropertyChanged event • ICommand • Execute • CanExecute Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 40. Key elements of MVVM • INotifyPropertyChanged • PropertyChanged event • ICommand • Execute • CanExecute • CanExecuteChanged event Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 41. DEMO Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 42. MVVM Basics DEMO Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 43. Data binding debugging Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 44. Data binding debugging • Allows breakpoints on data binding statements Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 45. Data binding debugging • Allows breakpoints on data binding statements • Exposes information on the data binding source, errors, etc… Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 46. Data binding debugging • Allows breakpoints on data binding statements • Exposes information on the data binding source, errors, etc… • Makes troubleshooting data binding issues really easy! Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 47. DEMO Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 48. Data binding debugging DEMO Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 49. Ancestor RelativeSource Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 50. Ancestor RelativeSource • New binding mode brought over from WPF Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 51. Ancestor RelativeSource • New binding mode brought over from WPF • Allows a child element to bind to properties on its parent Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 52. Ancestor RelativeSource • New binding mode brought over from WPF • Allows a child element to bind to properties on its parent • Very useful within item templates in an items control Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 53. DEMO Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 54. Ancestor RelativeSource binding DEMO Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 55. Implicit data templates Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 56. Implicit data templates • Another binding feature from WPF Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 57. Implicit data templates • Another binding feature from WPF • Defines a template to be used whenever Silverlight tries to display a particular type Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 58. Implicit data templates • Another binding feature from WPF • Defines a template to be used whenever Silverlight tries to display a particular type • In Silverlight 4, we had to explicitly specify a template for our custom types Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 59. Implicit data templates • Another binding feature from WPF • Defines a template to be used whenever Silverlight tries to display a particular type • In Silverlight 4, we had to explicitly specify a template for our custom types • Very useful when binding to a list of different subclasses – not limited to a Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 60. DEMO Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 61. Implicit data templates DEMO Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 62. New UpdateSourceTrigger Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 63. New UpdateSourceTrigger • Adds “PropertyChanged” option to available UpdateSourceTriggers – also from WPF Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 64. New UpdateSourceTrigger • Adds “PropertyChanged” option to available UpdateSourceTriggers – also from WPF • When used, the source of the binding (on our ViewModel) is updated whenever the property on the View is changed Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 65. DEMO Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 66. PropertyChanged UpdateSourceTrigger DEMO Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 67. Custom markup extensions Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 68. Custom markup extensions • Markup extensions are the parts of XAML that are surrounded by {curly braces} Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 69. Custom markup extensions • Markup extensions are the parts of XAML that are surrounded by {curly braces} • Binding, StaticResource, DynamicResource, etc… Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 70. Custom markup extensions • Markup extensions are the parts of XAML that are surrounded by {curly braces} • Binding, StaticResource, DynamicResource, etc… • They provide a value – one that is often not known until runtime Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 71. Custom markup extensions • Markup extensions are the parts of XAML that are surrounded by {curly braces} • Binding, StaticResource, DynamicResource, etc… • They provide a value – one that is often not known until runtime • Silverlight 5 now allows us to create Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 72. DEMO Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 73. Custom markup extensions DEMO Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 74. Binding in Style Setters Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 75. Binding in Style Setters • Styles are useful and widely used to define a consistent look and feel to our applications Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 76. Binding in Style Setters • Styles are useful and widely used to define a consistent look and feel to our applications • Until now, binding in the setters within styles were now allowed Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 77. Binding in Style Setters • Styles are useful and widely used to define a consistent look and feel to our applications • Until now, binding in the setters within styles were now allowed • Silverlight 5 allows us to create binding statements within stlyes Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 78. DEMO Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 79. Binding in style setters DEMO Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 80. What’s New In Silverlight 5 Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 81. What’s New In Silverlight 5 • Data Binding Improvements Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 82. What’s New In Silverlight 5 • Data Binding Improvements • Text Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 83. What’s New In Silverlight 5 • Data Binding Improvements • Text • Controls Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 84. What’s New In Silverlight 5 • Data Binding Improvements • Text • Controls • Media Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 85. What’s New In Silverlight 5 • Data Binding Improvements • Text • Controls • Media • Trusted Applications Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 86. Text improvements Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 87. Text improvements • Character spacing and line height Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 88. Text improvements • Character spacing and line height • TextOptions – pixel snapping Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 89. Text improvements • Character spacing and line height • TextOptions – pixel snapping • OpenType support Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 90. Text improvements • Character spacing and line height • TextOptions – pixel snapping • OpenType support • Linked text blocks for multi-column and flowing text Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 91. Character spacing and line Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 92. Character spacing and line • “CharacterSpacing” and “LineHeight” properties Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 93. Character spacing and line • “CharacterSpacing” and “LineHeight” properties • TextBox, TextBlock, RichTextBox, RichTextBlock Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 94. Character spacing and line • “CharacterSpacing” and “LineHeight” properties • TextBox, TextBlock, RichTextBox, RichTextBlock • CharacterSpacing calculated based formula: Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 95. Character spacing and line • “CharacterSpacing” and “LineHeight” properties • TextBox, TextBlock, RichTextBox, RichTextBlock • CharacterSpacing calculated based formula: Spacing (in pixels) = (font size * Value) / 1000 Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 96. Character spacing and line • “CharacterSpacing” and “LineHeight” properties • TextBox, TextBlock, RichTextBox, RichTextBlock • CharacterSpacing calculated based formula: Spacing (in pixels) = (font size * Value) / 1000 • LineHeight is the spacing between Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 97. Linked text Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 98. Linked text • RichTextBlocks can now specify a RichTextBlockOverflow element that text will flow to when full Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 99. Linked text • RichTextBlocks can now specify a RichTextBlockOverflow element that text will flow to when full • RichTextBlockOverflow elements can specify additional overflow containers Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 100. Linked text • RichTextBlocks can now specify a RichTextBlockOverflow element that text will flow to when full • RichTextBlockOverflow elements can specify additional overflow containers • Limited only to read-only RichTextBlocks Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 101. DEMO Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 102. Linked text, character spacing and line height DEMO Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 103. TextOptions Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 104. TextOptions • TextFormattingMode Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 105. TextOptions • TextFormattingMode • Ideal, Display (pixel snapping) Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 106. TextOptions • TextFormattingMode • Ideal, Display (pixel snapping) • TextHintingMode Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 107. TextOptions • TextFormattingMode • Ideal, Display (pixel snapping) • TextHintingMode • Fixed, Animated Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 108. TextOptions • TextFormattingMode • Ideal, Display (pixel snapping) • TextHintingMode • Fixed, Animated • TextRenderingMode Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 109. TextOptions • TextFormattingMode • Ideal, Display (pixel snapping) • TextHintingMode • Fixed, Animated • TextRenderingMode • Auto, Aliased, Greyscale, ClearType Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 110. OpenType Support Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 111. OpenType Support • Ligatures – glyphs with more than one letter Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 112. OpenType Support • Ligatures – glyphs with more than one letter • Contextual Alternates Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 113. OpenType Support • Ligatures – glyphs with more than one letter • Contextual Alternates • Stylistic Sets Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 114. OpenType Support • Ligatures – glyphs with more than one letter • Contextual Alternates • Stylistic Sets • Variants – superscript and subscript Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 115. OpenType Support • Ligatures – glyphs with more than one letter • Contextual Alternates • Stylistic Sets • Variants – superscript and subscript • Fractions Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 116. OpenType Support • Ligatures – glyphs with more than one letter • Contextual Alternates • Stylistic Sets • Variants – superscript and subscript • Fractions • Much more in the Typography class! Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 117. DEMO Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 118. TextOptions and OpenType DEMO Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 119. What’s New In Silverlight 5 Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 120. What’s New In Silverlight 5 • Data Binding Improvements Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 121. What’s New In Silverlight 5 • Data Binding Improvements • Text Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 122. What’s New In Silverlight 5 • Data Binding Improvements • Text • Controls Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 123. What’s New In Silverlight 5 • Data Binding Improvements • Text • Controls • Media Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 124. What’s New In Silverlight 5 • Data Binding Improvements • Text • Controls • Media • Trusted Applications Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 125. What’s New in Silverlight 5 Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 126. Learn More! Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company
  • 127. Learn More! • This is an excerpt from a larger course. Visit www.learnnowonline.com for the full details! Learn More @ http://www.learnnowonline.com Copyright © by Application Developers Training Company

Editor's Notes