Silverlight 3 and Expression Blend 3 Developers Day (22 July 2009) – Thanks for all participants!

July 24, 2009

Thank you all, who participated at Silverlight 3 and Blend 3 DevDay (Microsoft Israel offices)! As promised, I uploaded presentation slides presented during the session to my homepage – you could get in and see them anytime for a reference. My homepage is here.   Some demos already uploaded there (Sketch Flow Demo) and some others will be uploaded to the “Samples” page soon – stay tuned.   I’m really interesting within your feedback (leave comments) in order for me to be able to enhance it for future...

Utility: Extmap Maker

July 16, 2009

Silverlight 3 has nice feature to reduce the XAP package size of application by providing external assembly parts. To enable this feature use Silverlight project properties: When this enabled, most of Microsoft assemblies will not reside inside XAP package, but as ZIP files alongside the XAP itself. The application manifest will point to those ZIP files. This will enable browser caching mechanism. Actually, compiler “decides” which assembly will could be used as external ZIP assembly by presence of valid external map manifest file alongside assembly. I’ll not describe what is in this manifest – those, who want to know...

Silverlight Quick Tip: Resources in RESX files – Image Resources for Localization

July 14, 2009

This post was actually born in the middle of previous post :) I had to find the way to use images as a RESX resources – this actually was second question of the person who asked me about forcing the rebinding. Before starting, some theory about RESX usage in Silverlight. Silverlight support usage of RESX files and localization via “SupportedCultures” attribute in CSPROJ file. The attribute itself even exists in project created with Silverlight 3  Tools, but for some reason there is no interface to change the cultures (or at least I didn’t found them). So the only way (for me) to...

Silverlight Quick Tip: How to force re-binding

Today I’ll show how to do “dirty trick” to force re-binding and as a result UI value updating. First of all – the reasonable question – “Why force rebinding? Why not use INotifyPropertyChanged mechanism?” This was my questions also, but the person who asked the question had his reasons: he is using resources (Resx) to localize the application and bind the UI to those resources. Also UI gives user an ability to change the language (and code behind  does it by changing CurrentThread.CurrentUICulture). In this case what should be the notification? The request was to keep binding definition...

New Website

July 11, 2009

Hello all! In addition to this blog I’ve got new website at http://www.devcorner.info/ From now on all samples related to this blog, samples from presentations and additional Silverlight (and not only) related stuff will be hosted there. Right now the site is still almost empty (only default Silverlight 3 application there), but very soon I’ll fill it with content.   Alex
no comments

Silverlight 3 Quick Tip: Analytics

July 10, 2009

Silverlight 3 has new feature which should help us to understand how good our application performs. This feature is Analytics class. It Has 2 read-only properties AverageProcessLoad – average CPU used by this process across all the cores AverageProcessorLoad – average CPU usage across all cores In addition it has GpuCollection collection with objects of GpuInformation type. Each one of GpuInformation object provides information about: DeviceId – device ID of the GPU VendorId – vendor ID of the GPU DriverVersion – video drivers version   Quick usage sample – show...

Silverlight 3 Quick Tip: Animation Easing and VSM

New version of VSM in Silverlight 3 got new interesting addition – ability to use Easing Function for visual state transition animation. To use it, set the property “GeneratedEasingFunction” to desired VisuaStateTransition element and provide it with class instance with implements IEasingFunction. From XAML: <vsm:VisualTransition GeneratedDuration="00:00:10"                                 To="ItemDeselected" x:Name="vtDeselected" >   <vsm:VisualTransition.GeneratedEasingFunction>     <ElasticEase Oscillations="10" Springiness="2"/>   </vsm:VisualTransition.GeneratedEasingFunction> </vsm:VisualTransition> From Code Behind: ElasticEase ease...

Silverlight 3 Quick Tip: Out Of Browser Settings

In MIX 09 Beta build of Silverlight 3, when we wanted to enable out-of-browser experience, we had to edit manually AppManifest.xml. Now for Silverlight 3 projects in Visual Studio 2008 we got the out of browser settings helper dialog box The dialog will be saved in “OutOfBrowserSettings.xml” and this file contents will be merged on compile time to the AppManifest.xml. For hardcore programmers, who wants to write every single piece of the application without wizards/helpers – you still could use AppManifest.xml with valid declarations :)   Enjoy, ...

Silverlight 3 Quick Tip: Multitouch support on Windows 7

Silverlight 3 supports Multitouch on Windows 7. Touch class –provides input information and resides in System.Windows.Input namespace “FrameReported” event - fired when touch action occurs. Event arguments provide the following info: Timestamp: identify the touch event by time GetTouchPoints function (over specific UI Element) GetPrimaryTouchPoint function (over specific UIElement) SuspendMousePromotionUntilTouchUp function GetTouchPoints returns TouchPointCollection In TouchPointCollection first point in the collection is the PrimaryPoint. Each member in collection is TouchPoint. TouchPoint provides following...