Archive for the 'UK Tech Days' Category

17
Apr
10

Microsoft UK Tech days (day 5)

by Peter Daukintis

Windows Phone 7

Charlie Kindel gave keynote presentation on Windows Phone 7. These are my notes:

The focus for Microsoft Mobile has switched from being partner-lead to being user-lead across all aspects of the experience. The phone hardware will provide consistent platforms with hardware vendors adhering to Microsoft guidelines. At launch one screen resolution (800 x 480) will be supported followed later by a further one (480 x 320). The devices will have consistent processors, the same RAM, an optional keyboard, etc. Hardware accelerated Deep Zoom technology is incorporated into the phone operating system. The phone OS has deep integration with services in 3 categories:

  • Web services – your own (wcf, oData, etc)
  • Existing web services
  • Microsoft provided services (location services, notification service, Bing, XBOX Live, Windows Live, etc)
Two development environments:
  • Silverlight – ui applications, 2D games, can host web browser control
  • XNA – 2D/3D games, roll-your-own ui.

There is a facility for a limited beta program before an application is certificated. Also, there is a portal at which statistics about a deployed application may be viewed.

Charlie was a bit coy when asked about handwriting recognition support saying that he was not prepared to comment at this time.

The rules surrounding certification will be released in a month or so. The rules will be clear and failure to certificate should not be for any reasons that could not have been predetermined by the developers.

The phone browser has been optimised for the phone, supports high quality typography, pinch zoom, double-click zoom, etc, but as yet there is no support for the browser hosting Silverlight content.

The applications themselves will be wrapped in a Play Ready DRM wrapper the workings of which are handled by a back-end server so there may be support for sharing applications between phones but the policies surrounding this have not yet been released.

Silverlight for WP7

The development environment supports C# only; there is no VB as yet. There are some differences between Silverlight 3 and Silverlight for WP7; some things are missing whilst others have been added purely to support the phone. Core Silverlight assemblies are available but most of the SDK assemblies will be missing; for example, there is no Data Annotation support but there is support for Linq to XML.

Animations are hardware accelerated on the phone which is not true of the desktop Silverlight and also there is no restriction on isolated storage used by an application apart from what is actually available.

All phone applications are navigation applications so the user interface structure is like this:

Root Visual > PhoneApplicationFrame > PhoneApplicationPage

Although there is some multi-tasking support if the user switches from your app to another your app will enter a ‘paused’ state where it will need to persist it’s state for reactivation later.

The VS designer does not support the dynamic theming correctly so the resources are hard-coded in the current CTP, in order to test your app with the phone theming you can comment these hardcoded values out and test in the phone emulator.

Find the Location of the Phone

To discover the location of the phone you can use the GeoCoordinateWatcher class and subscribe to its positionChanged events to receive lat long coordinates. These can be passed to a CivicAddressResolver object to convert to more user friendly location strings.

Phone Orientation

Using the namespaces Microsoft.Devices.dll and Microsoft.Devices.Sensors.dll you can track the orientation by subscribing to the AccelerometerSensor.Default.ReadingChanged event.

Launchers and Choosers

Launchers provide your application with the ability to make use of the features of the phone for example, the camera launcher will launch the camera prompt the user to take a picture and return this to your application. Similarly, a chooser will invoke user interface to choose a particular element type such as a photo or video.

Notification Service

Microsoft provide a notification service which works by providing you with a url that a data provider can use to post data notifications to your phone. The notifications can be in three modes:

  • Raw – only when your application is running in the foreground.
  • Toast (like toast popping up in toaster) – when your application is running in the foreground or pops up over other apps.
  • Tile – used to update tiles on the main screen.

There is also the ability to call into XNA libraries from your Silverlight application for various areas of functionality.

XNA (with XNA Game Studio 4.0)

Currently the two dev environments are somewhat separate with only limited integration between the two. This is limited to using XNA libraries from the Silverlight environment so microphone input, sound effect creation, image processingeffects, etc. provide some interesting possibilities. In order to use the emulator effectively a high-end graphics card is a requirement and also some capabilities come for free on the phone hardware due to way it was designed.

Some features included in XNA Game Studio to support the phone are:

  • Simplified graphics APIs
  • New configurable effects (no custom shaders on the phone)
  • VS2010 integration
  • Extended Audio support

XNA Game Studio 4.0 has not been released yet – it is still in CTP so some things are not possible like XBOX support.

The advice given is to debug and profile your games on the Windows platform as it is pretty similar and iterating around running up the emulator is currently clunky. Unfortunately, we didn’t get to see any XNA games running on the actual phone hardware since no-one actually had one apart from Charlie Kindel and he had already left so we had to make do with games running on the emulator. The graphical effects built in are the following:

  • BasicEffect
  • DualTextureEffect
  • AlphaTestEffect
  • SkinnedEffect
  • EnvironmentMapEffect

For further info on these effects (and a lot more) see Shawn Hargreaves talk from MIX 2010 http://live.visitmix.com/MIX10/Sessions/CL22.

Well, that’s the end and I can say that I have learned a lot from my 3 days attendance at Uk Tech Days, there has been some great talks with high quality speakers and I will attend again if I get the chance. (Also, looking forward to getting my hands on some phone hardware!).

Technorati Tags: ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,

Windows Live Tags: Microsoft,Tech,Charlie,Kindel,presentation,notes,Mobile,user,guidelines,devices,keyboard,Hardware,Deep,Zoom,technology,system,integration,services,location,notification,XBOX,Live,development,host,Also,portal,statistics,recognition,rules,certification,failure,certificate,supports,typography,Play,Ready,wrapper,workings,server,environment,example,Data,Annotation,Linq,restriction,storage,navigation,interface,Root,Visual,PhoneApplicationFrame,PhoneApplicationPage,Although,Find,GeoCoordinateWatcher,events,CivicAddressResolver,Orientation,Sensors,AccelerometerSensor,Default,event,Launchers,Choosers,features,element,photo,Service,provider,foreground,Toast,Tile,tiles,Game,Studio,creation,image,possibilities,card,requirement,Some,APIs,custom,Audio,advice,platform,BasicEffect,DualTextureEffect,AlphaTestEffect,SkinnedEffect,EnvironmentMapEffect,info,Shawn,attendance,talks,aspects,platforms,vendors,categories,environments,policies,differences,Animations,notifications,modes,areas,Sessions,speakers,browser,emulator,camera,libraries,graphics

15
Apr
10

Microsoft UK Tech days (day 4)

by Peter Daukintis

tech days

The cinema screen used for the presentations at the Fulham Vue Cinema.

This was the client-based tech day:

Windows 7

The Windows 7 Code Pack provides a managed wrapper around the COM-based interfaces provided for many of the Windows 7 differentiating client application features. These include jump lists, file dialogs, sensor APIs Direct3D, linguistic services, etc. http://code.msdn.microsoft.com/WindowsAPICodePack. Sensor support in Windows 7, such as .NET 4.0 location APIs, light sensors, etc.

WPF 4.0

Another great presentation from Ian Griffiths on WPF 4.0 and supporting features in VS2010. VS2010 has improved data-binding, better intellisense and an improved designer. The new features include a User Interface for styles and resources, a user interface for editing data-binding and drag and drop support for the data sources window.

It is also possible to get ViewModel data-binding support from within VS2010 using the xaml namespace in the following way:

d:DataContext=”{d:DesignInstance vm:myViewModel}”

where d is the xamlnamespace and vm is the namespace with your view model in. This will then allow the data-binding to be wired up via the new user interface elements. This is pretty cool and should decrease the chances of making mistakes when setting up the bindings manually.

Graphics
  • Text rendering now provides much more control for the developer and the trade-offs between clarity and fidelity can be carefully selected in the code.
  • More things are offloaded to the GPU – although no details are available on what??
  • Pixel Shader 3.0 support
  • Bitmap caching support
  • Animation easing support (from Silverlight)
  • Layout rounding
  • Windows 7 features have been added – multi-touch support, Windows 7 dialogs, jump lists via xaml.
Data-Binding
  • Run text items can now be data-bound (didn’t work in 3.5)
  • Dynamic objects can be data-bound (support for c# dynamic keyword)
  • Input Binding (keypress, mousedown, etc) now works.
  • Datagrid, calendar, date picker now all built-in controls.
  • Now includes Visual State Manager (from Silverlight). WPF strategy of using triggers, although very flexible considered less designer-friendly.

WPF XAML parsing has been improved and the internals are now more visible. Also, there is now one parser that is used by the various clients; blend, visual studio, etc – this was not the case previously!

Technorati Tags: ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,

Windows Live Tags: Microsoft,Tech,Code,Pack,wrapper,client,features,sensor,APIs,services,WindowsAPICodePack,location,Another,presentation,Griffiths,data,User,Interface,ViewModel,DataContext,DesignInstance,chances,Graphics,Text,Pixel,Shader,Bitmap,Animation,Layout,items,Dynamic,objects,Input,Datagrid,calendar,Visual,State,Manager,strategy,XAML,Also,clients,studio,interfaces,dialogs,namespace

15
Apr
10

Microsoft UK Tech days (day 3)

by Peter Daukintis

I am planning to attend days 3, 4 and 5 of MS UK Techdays; here are some of the notes I scribbled down at day 3:

Silverlight 4.0

Silverlight 4 release date was confirmed to be 15th April.

A nice session by Mike Taulty covering many aspects surrounding SL4 including tooling support, associated frameworks, functional improvements and additions.

Some of the highlights included:

Tooling – VS2010 & Expression Blend 4 (beta). VS2010 gets a new designer and improved databinding support. Blend gets enhanced triggers, actions and behaviour support. Support for MVVM including ActionCommand will allows triggering of a command, create sample data from a class. Also, a pretty cool feature and one I’m looking forward to playing around with is the ‘fluid layouts’.

  • Implicit style support has been added – can dynamically switch style dictionaries.
  • Proportional column sizing supported by Datagrid.
  • MEF support, Printing, webcam, more OOB support (e.g. access to My Documents..), right-click support.
  • Check out pivot + SL4 (LiveLabs) – Beta released next month http://www.getpivot.com/
  • FIFA England world cup 2018 bid site to be released in a few weeks – really cool feature where you can submit photo of yourself for inclusion in deep zoom image.
  • Scott Guthrie announces plans with Intel and Broadcom to bring Silverlight to consumer electronics (set-top boxes, TVs, etc.) via ‘system on a chip’; more info here http://arstechnica.com/microsoft/news/2010/04/-microsoft-has-announced-it.ars. Silverlight for SOCs beta is planned to be available by the end of 2010. See the keynote video here http://www.microsoft.com/silverlight/silverlight-4-launch/
  • Toast notification support.
  • Fast prototypes in Sketchflow – Ebay and autotrader apps built quickly.

Internet Explorer 9

  • New Javascript compilation model, SVG support, <link to preview here>
  • Html5 vs Silverlight (standards based vs innovative).

Windows Phone 7

  • Strong design language. Strong hw specs – 3 button
  • X-Box live services integration. Office integration incl sharepoint
  • It is a zune also!

Expression Blend

Michael Koester gave a good presentation on Blend and design in general. He showed some of the features of Blend including the illustrator and photoshop import which retains layer, text and vector information. He showed converting vectors into controls by selecting a rectangle from an imported Photoshop layer and right-clicking ‘make into control’. He also covered behaviours and how they can be dragged onto ui elements e.g. dragging a mousedragbehaviour onto any element will enable it to be dragged around on a canvas using click-drag.

ASP.NET 4.0

  • Better tooling support
  • Slimmed-down web.config
  • Asp.net snippets (javascript, html, etc.) also snippets are context dependent
  • Improved javascript intellisense, better, faster
  • Output caching:
    • Provider model for caching so can provide custom caching
    • Finer grained control over what is cached
  • Compressed session state

Custom web.config transforms – used to transform web.config into dev/staging/production configuration files.

MVC 2

TextBoxFor, DisplayFor, EditFor, etc.. strongly typed helpers which make use of custom templates to render.

Technorati Tags: ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,

Windows Live Tags: Microsoft,Tech,Techdays,notes,April,session,Mike,additions,Some,highlights,Expression,Blend,actions,behaviour,Support,MVVM,ActionCommand,data,Also,Implicit,Proportional,column,Datagrid,Documents,Check,LiveLabs,Beta,FIFA,England,world,photo,inclusion,image,Scott,Guthrie,plans,Intel,Broadcom,consumer,system,info,news,SOCs,Toast,notification,Fast,Ebay,Internet,Explorer,Javascript,compilation,preview,Strong,language,specs,services,integration,Office,Michael,Koester,presentation,features,layer,text,rectangle,Photoshop,element,canvas,Better,snippets,context,Output,Provider,custom,Finer,production,configuration,files,TextBoxFor,DisplayFor,EditFor,aspects,improvements,dictionaries,prototypes,helpers,templates,config




Follow

Get every new post delivered to your Inbox.