Oana and Arthur | Our dev blog




Windows Phone 7 - Xenom Hawkeye

We decided to join the Imagine Cup 2010 - Windows Phone 7 "Rockstar" Award.
In the following posts both Oana and I will describe features of the new Windows Phone platform which will probably come out in the fall of 2010.

Hawkeye is a Windows Phone application for uploading and sharing your travel pictures with friends and family. You need a Windows Live account and, if you want, a Twitter account.

Take a look at the following screenshots:

A list of your trips, with a thumbnail to the left of each trip

 

All trip pictures in one place. You can take a new camera picture or upload an existing picture

 

Uploading a picture to SkyDrive and posting a Twitter update

 

Oana & Arthur

 



PrintScreen in Silverlight

I've wanted to convert rendered XAML content into an image file (PNG is a good start so I chose it for today's post). I took advantage of an open-source, third party library called .NET Image Tools which did a great job encoding PNG files. It can be found @CodePlex, the open-source project hosting space from Microsoft (check it out).

Let's start with the basic idea of this post. You have let's say, a Silverlight Canvas control and you would like to take a snapshot of it, make a print screen but not using external tools yet having it done within your own Silverlight app.

Here's the code:

//Creating a WritableBitmap object in order to use it as the source

//of an Image control

WriteableBitmap writableBitmap = new WriteableBitmap(MyPrintScreenCanvas, null);

BitmapSource bitmapSource = writableBitmap;

 

//Creating an Image instance which will be encoded later-on

Image image = new Image();

image.Source = bitmapSource;

 

//Encoding the Image object to a PNG file

//using .NET Image Tools library

ImageTools.IO.Png.PngEncoder pngEncoder =

   new ImageTools.IO.Png.PngEncoder();

MemoryStream ms = new MemoryStream();

ImageTools.Image ITImage = ImageTools.ImageExtensions.ToImage(MyPrintScreenCanvas);

pngEncoder.Encode(ITImage, ms);

Now you have the MemoryStream and you can save it to a file, send it as an email or store it on a server using a WCF or ASMX web service.

Thanks and bye bye, Arthur

Tags: , ,
Categories: .NET | C# | Silverlight
0 Comments
Actions: E-mail | Permalink | Comment RSSRSS comment feed


Pivot

The new Silverlight Pivot control will be available with the release of Silverlight 4 on 15th April.
It enables you to organize, sort, visualize huge collections of data in a very friendly way.

More details and a demo video at: http://www.getpivot.com/silverlight/

 

Tags: ,
Categories: Silverlight
0 Comments
Actions: E-mail | Permalink | Comment RSSRSS comment feed


Big Launch Day

Visual Studio 2010, the .NET Framework 4 and Silverlight 4 are going to be launched in Las Vegas, in about 7 hours.

Follow the link for details: http://www.microsoft.com/visualstudio/en-us/watch-it-live

© Microsoft

Tags: , , ,
Categories: .NET | Silverlight | Visual Studio
0 Comments
Actions: E-mail | Permalink | Comment RSSRSS comment feed


Visual Studio 2010 RC and Moonlight 2

I read this morning that Visual Studio 2010 RC will be delivered february next year.

More details on this subject on: http://blogs.msdn.com/somasegar/archive/2009/12/17/visual-studio-2010-and-net-framework-4-beta-period-extended.aspx

A more different story is that the new Moonlight 2 version is avaible to download and install on linux, which I obviously did and I can say, it works fine so hats off for Novell.

Article: http://blogs.zdnet.com/microsoft/?p=4807

Official Moonlight site: http://go-mono.com/moonlight/

 

 

Tags: , ,
Categories: Silverlight | Visual Studio
0 Comments
Actions: E-mail | Permalink | Comment RSSRSS comment feed