READING, WRITING, BINDING, VALIDATING AND VISUALISING YOUR DATA Business value with Silverlight.

Slides:



Advertisements
Similar presentations
SharePoint 2010 Overview Presented by: Oscar Garcia
Advertisements

Build Amazing Apps with Web Standards Mobile HTML5 Applications In Hours, Not Days.
Custom REST services and jQuery AJAX Building your own custom REST services and consuming them with jQuery AJAX.
SharePoint 2010 Client Side Object Model. Agenda Introduction The Problem Client side vs Server Side Client Side Object Model – How it works – What can.
.NET 3.5 SP1 New features Enhancements Visual Studio 2008 SP1 New features Enhancements Additional features/enhancements.
Expression Blend 4 – deep dive
Developing HTML5 Application using MVVM pattern Pekka Ylenius.
Evan Hutnick Session Roadmap  Introduction  Silverlight Foundation  The Tools of Silverlight  Layout  Databinding  Data.
An Introduction To Silverlight Gergely Orosz
ASP.NET and AJAX. Agenda What is ASP.NET? ASP.NET Versions Difference Between ASP and ASP.NET ASP.NET Architecture Overview ASP.NET IIS life cycle Overview.
1 Silverlight Photography Website Framework Comparing Component-Based Designs in Adobe Flex and Microsoft Silverlight David Roossien For Prof. Robert Adams.
Originally founded in 1985 as Rock Financial by Dan Gilbert Grew to one of the largest independent mortgage banks in the country 1998 IPO 1999 Launched.
Getting data into Silverlight on SharePoint Neil Iversen
Discover, Master, InfluenceSlide 1 Introducing Silverlight Paul Stovell Alpha Ape, Lead Code Monkey, Readify.
Ronnie Saurenmann Principal Architect Microsoft Switzerland
Entire article, and much more, is available at By Michael Knopf Programmer Analyst (A.K.A. I code) Software.
Struts. Agenda Preface Struts and its components An example The architecture required for Struts Applications.
Windows.Net Programming Series Preview. Course Schedule CourseDate Microsoft.Net Fundamentals 01/13/2014 Microsoft Windows/Web Fundamentals 01/20/2014.
MVC New release IE8 Beta 1 Deep Zoom (sea dragon) Silver light 2.0 Beta 1 Expression Blend 2.5 Preview Instant Messaging API Enhancements to Virtual Earth.
AJAX Chat Analysis and Design Rui Zhao CS SPG UCCS.
Ch6:creating consistent looking web sites. Master pages Master page defines a combination of fixed content and content place holder to hold the web page(.aspx)
May 16 – 18, 2007 Copyright 2007, Data Access Worldwide May 16 – 18, 2007 Copyright 2007, Data Access Worldwide Build Great Web Application 'Fast and Easy'
XForms: A case study Rajiv Shivane & Pavitar Singh.
Introduction to Silverlight By Alan Cobb 2008-Jan-10 Sacramento, CA
Introduction to Silverlight. Slide 2 What is Silverlight? It’s part of a Microsoft Web platform called Rich Internet Applications (RIA) There is a service.
February 16, Aaron Cuffman Andy Nagle Adam Schultz Web Site.
Introduction to Mobile Programming. Slide 2 Overview Fundamentally, it all works the same way You get the SDK for the device (Droid, Windows, Apple) You.
Windows Presentation Foundation. Agenda Introduction Developing Applications WPF and WF interoperability Custom Controls Styles and Templates Data Binding.
Sustainable SharePoint 2010 Customizations By Bill Keys.
Project “Astoria” first announced in Mix 2007 Shared early prototypes, got tons of feedback Now we’re talking about the real deal Production quality bits,
Silverlight Technology. Table of Contents 1.What is Silverlight Technology? 2.Silverlight Overview. 2.1 How it works 2.2 Silverlight development tools.
Microsoft SharePoint Server 2010 for the Microsoft ASP.NET Developer Yaroslav Pentsarskyy
Murach’s ASP.NET 4.0/VB, C1© 2006, Mike Murach & Associates, Inc.Slide 1.
Ronnie Saurenmann Principal Architect Microsoft Switzerland.
Sponsors Gold Silver Bronze Custom REST services and jQuery AJAX Building your own custom REST services and consuming them with jQuery AJAX.
Lap Around Visual Studio 2008 &.NET 3.5 Enhancements.
The Microsoft Technical Roadshow 2007 Rich Client Development in XAML Mark Johnston Developer & Platform Group Microsoft Ltd
New Features Overview. Agenda Silverlight - Intro Silverlight 3 New Features Overview with Demos, Demos and Demos… RIA Services Overview Demos, Demos,
Sponsors Gold Silver Bronze Custom REST services and jQuery AJAX Building your own custom REST services and consuming them with jQuery AJAX.
Silverlight 2 Andrew Pardoe Program Manager CLR Execution Engine
JAVASCRIPT WITH A VIEW Jordan Knight Solution Architect Xamling SESSION CODE: WEB305 (c) 2011 Microsoft. All rights reserved.
LANDESK SOFTWARE CONFIDENTIAL Tips and Tricks with Filters Jenny Lardh.
1 Catching up on Rich Clients (round 1) Mike Ormond, Mike Taulty Developer & Platform Group Microsoft Ltd
Preface IIntroduction Objectives I-2 Course Overview I-3 1Oracle Application Development Framework Objectives 1-2 J2EE Platform 1-3 Benefits of the J2EE.
Silverlight 101 Ahead! If you know Silverlight and are looking for more advanced content check out : ‘Microsoft Silverlight “Media” : Moving at 60fps’
WPF Data Binding Tomer Shamam Smart Client Team Leader Sela Group
Adxstudio Portals Training
Slide 1. Agenda  Introduction to Windows Workflow What is it? What are activities? Hosting  Out of the box Activities  Custom Activities and Dependency.
An Introduction to Developing Applications for Microsoft Silverlight Jaime Rodriguez
UNDERSTANDING YOUR OPTIONS FOR CLIENT-SIDE DEVELOPMENT IN OFFICE 365 Mark Rackley
Module 10: Data Access in ASP.NET. Overview Overview of the ASP.NET Data Access What is Data Access List of Data Source Control What is Data Bound How.
Introduction to ASP.NET development. Background ASP released in 1996 ASP supported for a minimum 10 years from Windows 8 release ASP.Net 1.0 released.
Programming with MVVM Miguel A. Castro Architect -
Chapter 2 Creating Website with Web Forms. Objectives Understand the different project types and templates when building ASP.NET web sites. The different.
Introduction to Silverlight Development Pavel Yosifovich CTO, Matrix Global; Senior Instructor, Hi-Tech College
Introducing the Microsoft® .NET Framework
Introduction to Silverlight
Integrating SharePoint 2010 with Office 2010
Developing GIS WebParts in SharePoint
PHP Training at GoLogica in Bangalore
Introduction to Silverlight
Introduction to Silverlight
Introduction to Internet Programming
WPF AKEEL AHMED.
Silverlight Technology
Developer Patterns to Integrate Silverlight 4.0 with SharePoint 2010
Building event-driven, long-running apps with Windows workflow
Tech Ed North America /1/ :36 AM Required Slide
WCF Data Services and Silverlight
Validation Errors Mahender Senior Software Engineer
Presentation transcript:

READING, WRITING, BINDING, VALIDATING AND VISUALISING YOUR DATA Business value with Silverlight

Introductions Me  I work at Datacom, on a large range of projects, primarily user interfaces  I have been yearning to try Silverlight but haven’t had the chance at work  My blog is at It’s a bit... new? You  Who’s done  Silverlight  Flash  Wpf  Astoria  ASP MVC  REST  LINQ to Entities  LINQ  C#

The Agenda Foundation  XAML  DependencyObjects and DependencyProperties  Templates, Styles & Resources  Layout Working with Data  Access (with Web Services & REST)  Binding  Validation  Visualisation

Business Value?

Foundations of Silverlight: XAML What is a Silverlight App?  A parallel universe of dlls  System.Windows.Controls classes arranged together (usually via XAML) XAML - a format for building objects via XML  WPF, Silverlight, WWF etc Why would you bother with XAML?  Designer support Web Page Silverlight host Application (App.xaml) UserControl (Page.xaml)

FoS: Dependency Properties Silverlight objects are DependencyObjects  DependencyObjects have DependencyProperties Child objects can “inherit” properties from their parents  Great for layout  Actually, you can set any DependencyProperty on any DependencyObject (but there might be no point)

FoS: Styles and Templates Styles can be used to “set” values on existing object trees  A bit like CSS  Bindings only work in WPF Templates can replace the object tree itself  ListView is the most common place to do this  We’ll go into this...

FoS: Layout and Animations Layout  It’s got some sweet layout controls  Grid, Canvas, StackPanel  No more cross browser issues Animations  It’s got some sweet animation support.  In XAML you declare the start and end values of properties  Colours, Positions, Opacities, Sizes  Easing  Makes things look “natural”  Subtle animations are good for business

Business Scenarios for Silverlight 90% of what we do has a central data store  Silverlight has to get its data over http (no database connection) Silverlight > ASPX etc  Stateful  Easy to bind  Validation can be very user friendly  You can make it look totally hot.  Rich visualisations User Armed with key data Leverages synergies Pays you money Silverlight client Data bindingValidationVisualisation Web Server Host Page Web Service for Data REST? Back end DatabaseBusiness LogicDomain model

Data Access Web Services REST  SQL Server Data Services AKA Astoria  See Diagram Sockets (push data) All data operations are asynchronous (BeginBlah, EndBlah) DEMO DatabaseLINQ to Entities modelDataServiceHttpDataServiceContext(Client)

Data Binding Databinding in Silverlight is very good  Hierarchy Navigation  DataContext inheritance  Two Way XAML: Code: txt1.SetBinding(TextBox.TextProperty, new Binding("Name"){Mode=BindingMode.TwoWay}); DEMO

Data Validation The BindingValidationError event bubbles up Bindings support single property validation:  ValidatesOnExceptions: Cause a validation error instead of throwing the exception  NotifyOnValidationError: Raise the BindingValidationError event if there is a binding error We can throw exceptions from within our property setters. DEMO

Data Visualisation Visual Properties can be databound  Canvas.Left, Grid.Row etc The visual elements in SL/WPF are really easy to work with  Great layout options  All visual elements are objects (no more DrawRectangle())  Templates also provide a lot of power DEMO

Tips, Tricks, Workarounds Astoria Client  Cast your IEnumerable queries into DataServiceQuery to get access to Expand and BeginExecute  When saving related records / foreign keys, you have to manually call AddLink on your context Astoria Service  Set config.UseVerboseErrors=true while debugging to get error messages out of your svc  Test it with Firebug/Fiddler/Charles  config.SetEntitySetAccessRule("*", EntitySetRights.All);

Tips, Tricks, Workarounds continued Expression Blend  Loads of draggy droppy support for templates, bindings, styles, gradients & paths. All the stuff you don’t want to hand code.  You can give a user control a “Design time size”  You have to reference a different DLL to get more controls  Don’t try and use DatePickerTextBox Silverlight  Sometimes your browser will cache your XAP – delete temp files if you don’t see your changes reflected  Really good JavaScript bridge  If you’re accessing services not on your domain, make sure you read up on cross domain JavaScript.

Thank you Questions? Feature Requests? Slides & Solution will be on my blog: All comments, questions, donations totally appreciated: