410 likes | 582 Views
Visualising Data in Silverlight and WPF. Ivan Towlson Mindscape Session Code: WUX305. Agenda. Data visualisation and Silverlight/WPF Visualising objects Visualising data sets Toolkits and controls. The Business Problem. Data != Information. The Business Problem.
E N D
Visualising Data in Silverlight and WPF Ivan Towlson Mindscape Session Code: WUX305
Agenda • Data visualisation and Silverlight/WPF • Visualising objects • Visualising data sets • Toolkits and controls
The Business Problem Data != Information
The Business Problem • It’s easy to miss important information in a sea of purely textual data • Trends and correlations • Special or different cases • Trouble spots • It’s often quicker to take in information with a graphical assist • Quick way to get a “big picture” overview
The Technical Problem • GUI programming stalled in 1991 • Low level graphics primitives • Procedural drawing code • Presenting data in a new UI required a whole new control
The Technical Problem • Technical consequences • Custom visualisations required extensive custom code • Expensive to develop • Third party controls • Expensive to buy because expensive for vendor to develop • Specific in purpose • Cost of learning complex new control APIs • Hard to justify the cost unless visualisation was a core requirement
The Technical Problem • Business consequences • Encouraged anaemic presentation of data • Displaying data, not information • “Battleship grey” and data grids • Onus on users to detect patterns and anomalies
Silverlight and WPF • Replace the appearance of a control without having to rewrite its entire behaviour • Declarative, higher-level graphics API • Flexible data binding mechanisms
Silverlight and WPF • Writing simple visualisations is a matter of hours rather than days • It is now affordable to be able to visualise your data your way • Data visualisation is the killer application for Silverlight and WPF
Single Data Item Visualisation • Binding • IValueConverter • IMultiValueConverter (WPF only) • DataTemplate • INotifyPropertyChanged
demo Visualising Single Data Items
Visualising a Collection of Data • Toolkits and controls • Custom visualisations
Visualisation Toolkits and Controls • Silverlight Toolkit • http://www.codeplex.com/Silverlight • Charting controls (beta) • WPF Toolkit • http://wpf.codeplex.com • Charting controls (beta) • Third party controls (commercial and free) • Charting, diagramming
demo Silverlight Charting Controls
Building Custom Visualisations • ItemsControl • Selector • ListBox • MultiSelector • ItemTemplate / ItemTemplateSelector • ItemsPanel / ItemContainerStyle • INotifyCollectionChanged • Bindable LINQ
demo Visualising a Collection of Data
Summary • Silverlight and WPF data binding is completely different to VB or Windows Forms • Bind sizes, colours, positions, transforms, visibilities • IValueConverter • DataTemplate • ContentTemplateSelector / ItemTemplateSelector • Use panels to perform layout • ItemsControl > ItemsPanel / ItemContainerStyle
Call to Action • A meaningful visual display is a great way to put information in front of users • Display information, not just data • It is now affordable to be able to visualise your data your way • Writing simple visualisations is a matter of hours rather than days • But be realistic – embrace “good enough” • Data visualisation is the killer application for Silverlight and WPF
question & answer http://hestia.typepad.com/flatlander/ http://www.mindscape.co.nz/ ivan@hestia.cc ivan@mindscape.co.nz
Required Slide Speakers, TechEd 2009 is not producing a DVD. Please announce that attendees can access session recordings at TechEd Online. Resources • www.microsoft.com/teched Sessions On-Demand & Community • www.microsoft.com/learning • Microsoft Certification & Training Resources • http://microsoft.com/technet • Resources for IT Professionals • http://microsoft.com/msdn Resources for Developers
Required Slide © 2009 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.
video Video Title
customer Customer Title Name Title Company
demo Demo Title Name Title Company
partner Partner Title Name Title Company
announcing Announcement Title
PowerPoint TemplateSubtitle color • Set the slide title in “title case” and subheads in “sentence case” • The subhead color is defined for this template as the fourth font color from the left • Font Size Requirements • Main bullet points must not be smaller than 24pt • Do NOT use any font size lower than 20pt • Set subhead to 36pt or smaller so it will fit on a single line • Turn off Auto Resizing on all text boxes
PowerPoint Guidelines • Font, size, and color for text have been formatted for you in the Slide Master • Use the color palette shown below • See next slide for additional guidelines • Hyperlink color: www.microsoft.com Sample Fill Sample Fill Sample Fill Sample Fill Sample Fill Sample Fill Sample Fill Sample Fill Sample Fill Sample Fill
Instructions on Color Readability • Colors are brighter when projected, so contrast and readability are diminished Use black or dark gray text only on these colors Sample Sample Use white text only on these colors Sample Sample Sample Sample Sample Sample Sample Sample
Slide for Showing Software Code Use this layout to show software code The font is Consolas, a monospace font The slide doesn’t use bullets but levels can be indented using the “Increase List Level” icon on the Home menu To use straight quotes " instead of smart quotes ”, do this: Click on the Office Button in the upper left corner At the bottom of the menu, choose PowerPoint Options From the left pane, select Proofing Click on the AutoCorrect Options button Select the AutoFormat As You Type tab, and deselect “Straight quotes” with “smart quotes”. Then Click OK.
Required Slide Speakers, TechEd 2009 is not producing a DVD. Please announce that attendees can access session recordings at TechEd Online. Resources • www.microsoft.com/teched Sessions On-Demand & Community • www.microsoft.com/learning • Microsoft Certification & Training Resources • http://microsoft.com/technet • Resources for IT Professionals • http://microsoft.com/msdn Resources for Developers
Required Slide Speakers, please list the Breakout Sessions, TLC Interactive Theaters and Labs that are related to your session. Related Content Breakout Sessions (session codes and titles) Interactive Theater Sessions (session codes and titles) Hands-on Labs (session codes and titles) Hands-on Labs (session codes and titles)
Required Slide Track PMs will supply the content for this slide, which will be inserted during the final scrub. Track Resources Resource 1 Resource 2 Resource 3 Resource 4
Required Slide © 2009 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.