Adding Style To Your Microsoft Wpf And Silverlight Applications

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

1 comments

Comments 1 - 1 of 1 previous next Post a comment

Post a comment
Embed Video
Edit your comment Cancel

1 Favorite

Adding Style To Your Microsoft Wpf And Silverlight Applications - Presentation Transcript

  1.  
  2. Agenda
    • Quick overview of WPF / Silverlight / XAML
    • Data Binding
      • Element to Element Data Binding
      • Binding to Objects
      • Binding to Collections
      • Master-Detail Binding
      • Data Binding and the Debugger
    • Styles
      • Creating custom Styles
      • “ Apply to All” Styles
      • Inherited Styles
    • Templates
      • Creating Control Templates
      • Custom Data Templates
    • Visual State Manager
  3. Windows Presentation Foundation
  4. is a cross-browser cross-platform cross-device implementation of .NET for building and delivering the next generation of media experiences & rich interactive applications for the Web Microsoft Silverlight
  5. XAML: Declarative Programming for Windows
    • Markup for Windows
      • Build applications in simple declarative statements
      • Also used in WF for defining workflows
    • Code and content are separate
      • Streamline collaboration between designers and developers
    • Easy for tools to consume and generate
    <Button Width=&quot;100&quot;>OK <Button.Background> LightBlue </Button.Background> </Button> Button b1 = new Button(); b1.Content = &quot;OK&quot;; b1.Background = new SolidColorBrush (Colors.LightBlue); b1.Width = 100; Dim b1 As New Button b1.Content = &quot;OK&quot; b1.Background = New _ SolidColorBrush _ (Colors.LightBlue) b1.Width = 100
  6. Data Binding
    • UI can be bound to CLR objects or XML
    • Dependency properties can also be bound to ADO.NET and objects associated with Web Services and Web properties
    • Sort, filter, and group views can be generated on top of the data
    • Data templates can be applied to data
    <StackPanel> <Label>Select A Customer</Label> <ListBox Name=&quot;myListBox&quot; Background=&quot;HoneyDew&quot; ItemsSource= &quot;{Binding {StaticResource mySource}}&quot; </ListBox> </StackPanel> Binding Target Binding Source Dependency Object Object Dependency Property Property TwoWay OneWay OneWayToSource
  7. Controls, Templates, Styles & Resources, Layouts, Animation Animation, Triggers, Timelines < StackPanel> <StackPanel.Triggers> <EventTrigger RoutedEvent=“Button.Click&quot;> <EventTrigger.Actions> <BeginStoryboard> <BeginStoryboard.Storyboard> <Storyboard> <ColorAnimation To=&quot;Yellow&quot; Duration=&quot;0:0:0.5“ Storyboard.TargetName=&quot;TheBrush&quot; Storyboard.TargetProperty=&quot;Color&quot; /> <DoubleAnimation To=&quot;45&quot; Duration=&quot;0:0:2&quot; Storyboard.TargetName=&quot;LowerEllipseTransform&quot; Storyboard.TargetProperty=&quot;Angle&quot; /> ... </StackPanel.Triggers> … remainder of contents of StackPanel, including x:Name'd TheBrush and LowerEllipseTransform … </StackPanel>
    • UI Services
    • Templates
    • Layout
    • Controls Library
    • Styles and Resources
    • Annotation
    Templated Button
  8. Resources
    • http://msdn.microsoft.com/windowsvista MSDN Developer Center for Windows Vista / WPF
    • http://wpf.netfx3.com Windows Presentation Foundation Technical Community
    • http://www.silverlight.net Microsoft Silverlight
    • http://del.icio.us/ChrisKoenig/ Lots of links for WPF and Silverlight Development
  9. Upcoming Events
      • Houston TechFest has been POSTPONED
    • September
      • 23 – MSDN Unleashed & ArcReady
    • October
      • 9-10 – Tulsa TechFest
      • 20-22 – in.Telligent Conference
    • November
      • 4 – Election Day (Rock the Vote!)
      • 14 – Dallas Agile.NET Conference
      • 18-20 – MSDN TechDays (Dallas)
    • December
      • 8-10 – VSLive! Dallas
    • January
      • 16-18 – We Are Microsoft / GiveCamp Dallas
  10.  
  11. © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

+ Chris KoenigChris Koenig, 2 years ago

custom

3116 views, 1 favs, 4 embeds more stats

Slides for presentation on WPF and Silverlight data more

More info about this document

© All Rights Reserved

Go to text version

  • Total Views 3116
    • 2996 on SlideShare
    • 120 from embeds
  • Comments 1
  • Favorites 1
  • Downloads 177
Most viewed embeds
  • 117 views on http://blogs.msdn.com
  • 1 views on file://
  • 1 views on http://www.hanrss.com
  • 1 views on http://209.85.175.104

more

All embeds
  • 117 views on http://blogs.msdn.com
  • 1 views on file://
  • 1 views on http://www.hanrss.com
  • 1 views on http://209.85.175.104

less

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

Cancel
File a copyright complaint
Having problems? Go to our helpdesk?

Categories