Presentation is loading. Please wait.

Presentation is loading. Please wait.

Ronnie Saurenmann Microsoft Switzerland

Similar presentations


Presentation on theme: "Ronnie Saurenmann Microsoft Switzerland"— Presentation transcript:

1 Ronnie Saurenmann Microsoft Switzerland ronnies@microsoft.com

2 My Apps SwissTXT (Prototype) MySwitzerland Deepzoom Zermatt Miss Switzerland 2010

3

4 TextBox InputScope InputScope gives a hint to the system which Soft Input Panel layout to use

5 Silverlight 3 / 4 reuse You can use most of the SL3.dlls You can use SL4.dlls if they don’t use SL4 specific features

6

7 Progress bar issues 7 Use PerformanceProgressBar instead of just the built-in ProgressBar style Turn off IsIndeterminate when not needed Collapse the ProgressBar http://www.jeff.wilcox.name/2010/08/performanceprogressbar/

8

9 Tile notification tip The only way to change the tile is through notification Sometime push notification is too complex and requires server side code Use ShellTileScheduler as pull mechanism Max 1 refresh per hour Doesn't need any server side code

10 User & Device info Unique device id Will not change across hard rest, reflash, etc… Not good for user detection Device changes hands but the id stay the same Unique User Bound to the LiveId Doesn’t work on the emulator string did= DeviceExtendedProperties.GetValue("DeviceName").ToString(); string uniqueUser = UserExtendedProperties.GetValue("ANID").ToString().Substring(2, 32);

11

12 Panorama & Pivot tips MouseDown, MouseUp & Flick / Pan Apps can show / hide Microsoft.Phone.Shell.SystemTray.IsVisible = false;

13

14 Accelerometer Measures force applied on each axis over time +Y -Y +X -X +Z -Z

15 Vibration Vibrates the phone for a given duration Useful for haptic feedback Notifying users of updates VibrateController vc = VibrateController.Default; vc.Start(TimeSpan.FromSeconds(2)); // vc.Stop (); //to stop it before the timespan

16

17 Localization Through Resources & DataBinding Special car for the ApplicationBar Part of the Phone Shell not data-bindable

18

19 Toolkit ContextMenu DatePicker & TimePicker ToggleSwitch WrapPanel GestureListener More to come Autocomplete …… http://silverlight.codeplex.com/releases/view/52297

20 Start-up Use a splash screen Include applicationsplashscreen.jpg Watch out in this OS version you cannot localize it

21 Start-up (2) Delay loading resources at start-up. Avoid running code on constructors and Loaded events Aim for small assemblies Include content instead of resources Assets from the web or in the XAP? If not too big better in the XAP Save bandwidth costs Faster / Offline usage Taxed only once at install time

22

23 Gesture Listener

24

25 Threading (on Phone) UI thread Input (touch) Layout Measure and arrange User code E.g. per-frame callbacks E.g. Blocking on Network Animations not done in Render thread Compositor Thread Simple Animations Only “double” Animations for simple Properties Render Transforms Opacity Perspective Transforms Rectangular Clip

26 Leverage GPU Use simple animations of Simple properties Cache CacheMode = “BitmapCache” Do not use: Non-rectangular clips Opacity mask Not simple animations (e.g. ColorAnimation) Large textures ( > 2K pixels either way)

27 The Emulator Leverages GPU on your PC Often much more CPU than on device Uses a single core Requires DirectX 10 capable hardware

28

29 Windows Phone Themes Windows Phone 7 allows users to customize the system theme on their phone Select between Light or Dark background Select from a choice of 10 accent colors Silverlight controls are all theme aware Adopt color scheme selected by the user by default Developer can customise control rendering and override any themed properties

30

31 © 2010 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.


Download ppt "Ronnie Saurenmann Microsoft Switzerland"

Similar presentations


Ads by Google