Friday, December 31, 2010

Native Extensions for Silverlight (NESL)?

Native Extensions for Silverlight (NESL)?


Native Extensions for Silverlight (NESL)?

Posted: 31 Dec 2010 08:53 AM PST

Silverlight applications are written as managed code which runs on a CLR which sandboxes the code. In Silverlight 1 and 2 this was easy to understand because all applications were running in a browser and it's common to expect code running in a browser...( read more )...(read more)

Rebuilding the PDC 2010 Silverlight Application (Part 7)

Posted: 31 Dec 2010 02:39 AM PST

Following on from that previous post , the last thing that I wanted to do was just tidy up the styling around the new downloading dialog that I'd created and the UI for launching it. So, I opened up Blend once more and the first task is to replace that...( read more )...(read more)

Thursday, December 30, 2010

ASP.NET MVC 3: Layouts and Sections with Razor

ASP.NET MVC 3: Layouts and Sections with Razor


ASP.NET MVC 3: Layouts and Sections with Razor

Posted: 30 Dec 2010 12:27 AM PST

This is another in a series of posts I'm doing that cover some of the new ASP.NET MVC 3 features: Introducing Razor (July 2nd) New @model keyword in Razor (Oct 19th) Layouts with Razor (Oct 22nd) Server-Side Comments with Razor (Nov 12th) Razor's @: and <text> syntax (Dec 15th) Implicit and Explicit code nuggets with Razor (Dec 16th) Layouts and Sections with Razor (Today) In today's post I'm going to go into more details about how Layout pages work with Razor.  In particular, I'm going to cover how you can have multiple, non-contiguous, replaceable "sections" within a layout file – and enable views based on layouts to optionally "fill in" these different sections at runtime.  The Razor syntax for doing this is clean and concise...(read more)

Rebuilding the PDC 2010 Silverlight Application (Part 6)

Posted: 30 Dec 2010 04:40 AM PST

As it stands in that previous post , when the user selects to download a particular PowerPoint deck or a hi-def or lo-def video for a session, that information is only being stored in a view model ( the SessionViewModel ) and so it easily gets lost if...( read more )...(read more)

Silverlight Cream for December 29, 2010 -- #1018

Posted: 29 Dec 2010 08:55 PM PST

In this Issue: Arik Poznanski , Derik Whittaker ( -2- ), Alex Knight , Maurice de Beijer , Jesse Liberty , Jason Ginchereau , Jeff Blankenburg , Mike Snow , and Peter Kuhn . Above the Fold: Silverlight: "Silverlight: Reading from a File Contained in your...( read more )...(read more)

Wednesday, December 29, 2010

Making an Exception

Making an Exception


Making an Exception

Posted: 29 Dec 2010 11:43 AM PST

An interesting debate about C++ exceptions took place a few weeks ago in the C++ MVPs discussion list. The trigger was something as innocent and specific as " would you guys just throw std::runtime_exception with some error message string or you...(read more)

Silverlight: Reading from a File Contained in your XAP

Posted: 28 Dec 2010 10:11 PM PST

The approach you take to reading from a file that is contained in your XAP is different from one you might take reading a file that is on a server or one that you have copied over to your ClientBin (which could be done using WebClient). To do this first...( read more )...(read more)

Silverlight Cream for December 28, 2010 -- #1017

Posted: 28 Dec 2010 09:00 PM PST

In this Issue: Davide Zordan , Alex Golesh , Michael S. Scherotter , Andrej Tozon , Alex Knight , Jeff Blankenburg ( -2- ), Jeremy Likness , and Laurent Bugnion . Above the Fold: Silverlight: "My "What's new in Silverlight 4 demo" app" Andrej Tozon WP7...( read more )...(read more)

SilverlightShow for 20-26 Dec 2010

Posted: 28 Dec 2010 05:38 PM PST

Check out the Top Five most popular news at SilverlightShow for last week (20 - 26 Dec 2010). The most popular news for last week is Ryan Alford's solution on handling an error in Silverlight 4 when using Entity Framework 4, followed by Jeremy Likness...( read more )...(read more)

Tuesday, December 28, 2010

Updated SMF Thumbnail Scrubbing Sample Code

Updated SMF Thumbnail Scrubbing Sample Code


Updated SMF Thumbnail Scrubbing Sample Code

Posted: 28 Dec 2010 10:59 AM PST

I just posted an update to the code I wrote almost a year ago for showing thumbnail images of a video while scrubbing (moving the play slider) in Silverlight.  This is similar to the experience that you get when scrubbing on Netflix Watch Instantly...( read more )...(read more)

Silverlight Cream for December 27, 2010 -- #1016

Posted: 27 Dec 2010 08:46 PM PST

In this Issue: Sacha Barber , David Anson , Jesse Liberty , Shawn Wildermuth , Jeff Blankenburg ( -2- ), Martin Krüger , Ryan Alford ( -2- ), Michael Crump , Peter Kuhn ( -2- ). Above the Fold: Silverlight: "Part 4 of 4 : Tips/Tricks for Silverlight Developers...( read more )...(read more)

Monday, December 27, 2010

Silverlight Cream Monday WP7 App Review # 1

Silverlight Cream Monday WP7 App Review # 1


Silverlight Cream Monday WP7 App Review # 1

Posted: 27 Dec 2010 09:35 AM PST

I'm going to try something here... if it seems useful, I'll continue, if it doesn't, I'll stop... so give me feedback! There are *lots* of Apps in the WP7 Marketplace, and heaven help me, but the Marketplace sucks for finding stuff. I won't rehash what...( read more )...(read more)

Data Access Engine (DAE)

Posted: 16 Dec 2010 07:58 PM PST

Data Access Engine (DAE) is an open source and free .NET component to access all popular DBMSs such as Microsoft SQL Server, MySQL, Oracle, Microsoft Access, SQLite and databases that connected by ODBC. DAE helps to connect different DBMSs at the same time.

Silverlight Cream for December 26, 2010 -- #1015

Posted: 26 Dec 2010 03:04 PM PST

In this all-submittal Issue: Michael Washington ( -2- ), Ian T. Lackey ( -2- , -3- ), Sandrino Di Mattia , Colin Eberhardt ( -2- ), and Antoni Dol . Above the Fold: Silverlight: "A Style for the Silverlight CoverFlow Control Slider" Antoni Dol WP7: "Getting...( read more )...(read more)

Sunday, December 26, 2010

Funny Sounds, Radio Streams & Japanese – Win7 Mobile Apps

Funny Sounds, Radio Streams & Japanese – Win7 Mobile Apps


Funny Sounds, Radio Streams & Japanese – Win7 Mobile Apps

Posted: 26 Dec 2010 08:48 AM PST

Well, I am having a lot of fun on my vacation creating applications in Silverlight for the Win7 mobile phone. My latest published application allows you to play a variety of sounds including some funny, obnoxious ones that will find some good laughs at...( read more )...(read more)

Popper 2 reviewed by BestWp7Games.com

Posted: 26 Dec 2010 07:13 AM PST

The folks over at Best Windows Phone Games have done a nice writeup about Popper 2, you can check it out here: http://www.bestwp7games.com/wp7-game-review-popper-2.html If you're interested in games on Windows Phone 7 I'd highly recommend subscribing...( read more )...(read more)

Entity Visualizer

Posted: 26 Dec 2010 06:53 AM PST

Entity Framework Debugger Visualizer

How to Convert an Enum to its String Value

Posted: 25 Dec 2010 03:36 PM PST

If you ever need to get the string value of an Enum member you can do so using the following technique rather than using a reverse lookup table: Electronic electronic = Electronic.Breakbeat;   // value = "Breakbeat"; string value = Enum.GetName...( read more )...(read more)

Friday, December 24, 2010

#uksnow #silverlight The Movie! – Happy Christmas.

#uksnow #silverlight The Movie! – Happy Christmas.


#uksnow #silverlight The Movie! – Happy Christmas.

Posted: 24 Dec 2010 06:42 AM PST

It's Christmas Eve and time for some fun! A few weeks back I published an article on Reactive Extensions where I created a Bing Maps / Twitter mashup that plotted the geolocation of #uksnow twitter tags. This twitter hashtag was popularised by Ben...( read more )...(read more)

SilverlightShow for 13-19 Dec 2010

Posted: 24 Dec 2010 06:39 AM PST

I still haven't updated my friends at SilverlightShow, but I have their list from last week. Check out the Top Five most popular news at SilverlightShow for last week (13 - 19 Dec 2010). First place for the past week takes the post about Mahesh Sabnis...( read more )...(read more)

Navigating with the WebBrowser Control on WP7

Posted: 24 Dec 2010 12:18 AM PST

I am writing a new Windows Phone 7 application called GooNews to show Google News in an application for the phone. I am writing this application because I needed an app like this. Being able to keep up with news (and create news categories based on keywords...( read more )...(read more)

Silverlight Cream for December 23, 2010 -- #1014

Posted: 23 Dec 2010 08:23 PM PST

In this 4-days loss to a sinus infection and all-submittal Issue.... and this only catches me up on submittals through last Sunday: Mark Monster , Sacha Barber , Rénald Nollet , Georgi Atanasov , and András Velvárt . Above the Fold: Silverlight: "Silverlight...( read more )...(read more)

Win7 Image Client for Bing, FlickR & Google

Posted: 23 Dec 2010 05:02 PM PST

I recently published a Win7 mobile phone version of my web-based Galactic Image application that is found here: http://www.galacticimg.com. To find it search for "Zynpo Image Browser" on the Marketplace or use this direct link to open it in Zune on your...( read more )...(read more)

Static analysis of Silverlight XAML: Basic concepts

Posted: 23 Dec 2010 01:00 PM PST

Silverlight has APIs that support quite a variety of client-side APIs. But one area where the API is noticeably thin in Silverlight is interacting with XAML as a format, and discovering or changing how the Silverlight XAML parser works in the client runtime...( read more )...(read more)

Thursday, December 23, 2010

Download VTD Video Session on LightSwitch: 23rd November 2010

Download VTD Video Session on LightSwitch: 23rd November 2010


Download VTD Video Session on LightSwitch: 23rd November 2010

Posted: 23 Dec 2010 03:04 AM PST

Microsoft Virtual Techdays is the India's Premier online Technical Event. This was the 10th edition of the series, started on 22nd November 2010 and continued for 3 days. On 23rd November 2010, I delivered my session on " Building Visual Studio LightSwitch...( read more )...(read more)

Silverlight for Windows Phone 7 Quick Tip: Fix missing icons while using DatePicker/TimePicker controls

Posted: 22 Dec 2010 06:00 PM PST

Recently in one of my applications I used DatePicker control from Silverlight for Windows Phone 7 Toolkit . When launched the app and tried to change the date I "discovered" unpleasant surprise – the Done/Cancel icons in Application Bar were missed: I...( read more )...(read more)

Silverlight TV 51: Debugging and Deploying WCF RIA Services

Posted: 22 Dec 2010 02:30 PM PST

Silverlight TV 51: In this week's episode of SLTV, John sits down with Saurabh Pant of the WCF RIA Services team and responds to some of the most common issues customers encounter when deploying WCF RIA Services. Saurabh runs through various scenarios...( read more )...(read more)

Free eBook: Schildt’s C++ Beginner’s Guide, 2nd Ed

Posted: 22 Dec 2010 03:53 PM PST

For those interested in learning the basic concepts of object-oriented programming (OOP) in C++, there's a beginners' book that we are featuring until December 31, 2010 . Before that deadline, you may download it for free, or buy your paper copy afterward...(read more)

Wednesday, December 22, 2010

Silverlight 4 Open House and Microsoft Israel and Sela HQ

Silverlight 4 Open House and Microsoft Israel and Sela HQ


Silverlight 4 Open House and Microsoft Israel and Sela HQ

Posted: 21 Dec 2010 01:32 PM PST

Yesterday I had 2 great open houses – first at Microsoft Israel and second at Sela HQ. Thanks for all participants! I really enjoyed to present Silverlight 4 before such nice audience! I really enjoyed the Q&A session ah the end of the meeting. If...( read more )...(read more)

Tuesday, December 21, 2010

Be a Presenter at MIX11

Be a Presenter at MIX11


Be a Presenter at MIX11

Posted: 20 Dec 2010 09:33 PM PST

Do you have a topic you'd like to present at MIX11? Submit your session proposal by Friday, January 14, 2011. The MIX content team will select the best proposals, and the MIX community will vote to determine who will present.

Save $500 + one night hotel at MIX11 – register by Feb 11

Posted: 20 Dec 2010 08:46 PM PST

MIX11 registration opens in late January with a special offer for early birds – register by February 11 and save $500 on your conference pass, and receive one free night hotel when you book two or more nights at the Mandalay Bay. Join the MIX e-mail newsletter and be among the first to learn about open registration, special offers, speakers, and technical content for this year's event.

Unit-Testing Native C++ with Visual Studio

Posted: 21 Dec 2010 09:00 AM PST

Hi there! I'm John Socha-Leialoha and I'm a big fan of TDD. When I asked around about writing C++ tests, I was told there isn't any support for C++ unit tests in Visual C++. Not true. Check this blog post where I tell you what's...(read more)

A Simplified Grid Markup for Silverlight and WPF

Posted: 21 Dec 2010 04:58 AM PST

The WPF / Silverlight syntax is long and cumbersome. This blog post describe a simple attached property that allows you to specify row and column widths / heights as a simple comma separated list, e.g. RowDefinitions="Auto,,3*,,,,2*" The Grid...( read more )...(read more)

SQL Monitor - tracking sql server activities

Posted: 18 Nov 2010 12:49 PM PST

monitor and alert sql server activities

Indie Games for Windows Phone 7 strategy update

Posted: 20 Dec 2010 07:57 PM PST

So I took some of my own advice and released a "Lite" version of Popper 2 a couple of days ago. The Lite version is pretty much identical to the trial mode of the paid version. The main difference is where there were prompts to buy the game, those have...( read more )...(read more)

Staying Current with Visual C++ 2010

Posted: 20 Dec 2010 03:28 PM PST

A few weeks ago, the 2010 Edition of TechEd Europe took place in Berlin, Germany. C++ MVP Kate Gregory (picture) delivered a session where she shows through demos the latest achievements in the C++arena, especially regarding the upcoming C++0x version...(read more)

Sunday, December 19, 2010

Using the Multi-Touch Behavior in a Windows Phone 7 Multi-Page application

Using the Multi-Touch Behavior in a Windows Phone 7 Multi-Page application


Using the Multi-Touch Behavior in a Windows Phone 7 Multi-Page application

Posted: 19 Dec 2010 01:30 PM PST

In these days I'm receiving several questions in the Multi-Touch Behaviors forums about enabling Multi-Touch manipulations in Windows Phone applications composed by more that one page. Today I've modified the available sample inserting an...( read more )...(read more)

Solving 3 problems with the ShellTileSchedule

Posted: 19 Dec 2010 12:03 PM PST

Are the problems with the Shell Tile Schedule? Yes there are, at least I'm in the impression that there are some problems. Although we have those problems I really like the ShellTileSchedule because it enables an app to have an updated tile without the...( read more )...(read more)

Pune DevCon Event: Download Visual Studio LightSwitch Slides

Posted: 18 Dec 2010 10:47 PM PST

It was a nice time to present myself to the audience to deliver my presentation on Visual Studio LightSwitch for Silverlight application development in Pune Developer Conference (DevCon) event organized by Pune User Group. Today my session was from 2...( read more )...(read more)

Silverlight Cream for December 18, 2010 - 2 -- #1013

Posted: 18 Dec 2010 08:53 PM PST

In this Issue: Michael Washington , Pete Brown , Robby Ingebretsen , Bill Reiss , Jordan Knight , Mike Taulty , Justin Angel , Jeff Blankenburg . Above the Fold: Silverlight: "Creating the Silverlight View Model (MVVM) Control: Calendar Icon" Michael...( read more )...(read more)

Saturday, December 18, 2010

Silverlight Cream for December 18, 2010 -- #1012

Silverlight Cream for December 18, 2010 -- #1012


Silverlight Cream for December 18, 2010 -- #1012

Posted: 18 Dec 2010 02:18 PM PST

In this Issue: Mark Monster , Kevin Dockx , Jeremy Likness ( -2- , -3- ), Timmy Kokke , Den Delimarsky , Mike Snow , Samuel Jack ( -2- ), and Renuka Prasad ( -2- ). Above the Fold: Silverlight: "Trigger a Storyboard on ViewModel changes" Mark Monster...( read more )...(read more)

ASP.NET MVC 3: Implicit and Explicit code nuggets with Razor

Posted: 16 Dec 2010 11:23 PM PST

This is another in a series of posts I'm doing that cover some of the new ASP.NET MVC 3 features: New @model keyword in Razor (Oct 19th) Layouts with Razor (Oct 22nd) Server-Side Comments with Razor (Nov 12th) Razor's @: and <text> syntax (Dec 15th) Implicit and Explicit code nuggets with Razor (today) In today's post I'm going to discuss how Razor enables you to both implicitly and explicitly define code nuggets within your view templates, and walkthrough some code examples of each of them.  Fluid Coding with Razor ASP.NET MVC 3 ships with a new view-engine option called "Razor" (in addition to the existing .aspx view engine).  You can learn more about Razor, why we are introducing it, and the syntax it supports from my Introducing...(read more)

How to solve Visual Studio hang problem when working in win7 with Norton antivirus

Posted: 16 Dec 2010 12:30 PM PST

A recent support email between customer and our developer shows that Norton/Symantec antivirus may affect Visual Studio's performance in win7 due to the win7 jumplists.  Here's a workaround for it:   First, to determine if this is the problem, you may want to disable the antivirus temporarily and see if these hangs still repro. If it's indeed the case, please create/set the following registry value and restart VS2010. [HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0\General] "ShowRecentFilesInJumplist"=dword:00000001   With the value set, Visual Studio will not try to remove anymore the files from the Win7 jumplists , which would reduce the chance of an antivirus interfering (at least during file saves)  ...(read more)

ASP.NET MVC 3: Razor’s @: and syntax

Posted: 15 Dec 2010 11:48 PM PST

This is another in a series of posts I'm doing that cover some of the new ASP.NET MVC 3 features: New @model keyword in Razor (Oct 19th) Layouts with Razor (Oct 22nd) Server-Side Comments with Razor (Nov 12th) Razor's @: and <text> syntax (today) In today's post I'm going to discuss two useful syntactical features of the new Razor view-engine – the @: and <text> syntax support. Fluid Coding with Razor ASP.NET MVC 3 ships with a new view-engine option called "Razor" (in addition to the existing .aspx view engine).  You can learn more about Razor, why we are introducing it, and the syntax it supports from my Introducing Razor blog post.  Razor minimizes the number of characters and keystrokes required when writing a view...(read more)