Silverlight Feeds - All your Silverlight feeds in one place.

Sponsors

Feed: Silverlight Playground

Site: http://www.silverlightplayground.org/ Link: http://feeds.feedburner.com/SilverlightPlayground

Thursday, August 19, 2010

Review: Microsoft Silverlight 4 Data and Services Cookbook

by Andrea Boschin via Silverlight Playground on 8/19/2010 10:48:02 PM

Some time ago I've received a copy of the book "Microsoft Silverlight 4 Data and Services Cookbook" and finally I was able to read it during my recent holidays. So I decided to write this brief review to suggest you to give it a chance, because I found this book is really interesting for someone need to start learning Silverlight 4.0. The book is a sort of collection of recipes, that describes some use cases of Silverlight applications that give a good framing for various aspect of ...

[ read more ]

Tuesday, April 27, 2010

Keeping an ObservableCollection sorted with a method override

by Andrea Boschin via Silverlight Playground on 4/27/2010 4:30:52 PM

Usually the order of elements in a collection is something one does not feel to be important. We have plenty of methods in the Framework to order things and now that there is LINQ to Objects the need to sort something is really matter of seconds. Since the introduction of LINQ the main problem is that you have many cases where a few lines of code are adding really complex iteration logic and often this hurts performances when the count of milliseconds is something important. In these days I h ...

[ read more ]

Monday, March 15, 2010

SilverVNC - a VNC Viewer with Silverlight 4.0 RC

by Andrea Boschin via Silverlight Playground on 3/15/2010 7:07:30 PM

I confess I wrote the code of this example few months ago, when only Silverlight 3.0 was on the scene, and I retained it for me because it was a beautiful example but not really useful. Since it uses a socket connection it is a little bit complicated to use it in real world scenario due the fact it needs a policy server, and it is restricted to few number of ports that does not have anything to do with VNC standard ports. Finally, when I got the first bits of Silverlight 4.0 I decided it wou ...

[ read more ]

SilverVNC - a VNC Viewer with Silverlight 4.0 RC

by Andrea Boschin via Silverlight Playground on 3/15/2010 7:07:30 PM

I confess I wrote the code of this example few months ago, when only Silverlight 3.0 was on the scene, and I retained it for me because it was a beautiful example but not really useful. Since it uses a socket connection it is a little bit complicated to use it in real world scenario due the fact it needs a policy server, and it is restricted to few number of ports that does not have anything to do with VNC standard ports. Finally, when I got the first bits of Silverlight 4.0 I decided it wou ...

[ read more ]

Chromeless Window for OOB applications in Silverlight 4.0 RC

by Andrea Boschin via Silverlight Playground on 3/15/2010 7:07:07 PM

I think all of you are aware of the new useful features of Silverlight 4.0 beta released last November. I'm referring to a bunch of new improvements, affecting the out of browser applications, starting from the full-trust capabilities to the new Notification Window, and some little changes to the configuration of the window. The new release candidate of Silverlight 4.0 bring some news to the out of browser applications. Until now we have a very little control over the window containing the app ...

[ read more ]

Chromeless Window for OOB applications in Silverlight 4.0 RC

by Andrea Boschin via Silverlight Playground on 3/15/2010 7:07:07 PM

I think all of you are aware of the new useful features of Silverlight 4.0 beta released last November. I'm referring to a bunch of new improvements, affecting the out of browser applications, starting from the full-trust capabilities to the new Notification Window, and some little changes to the configuration of the window. The new release candidate of Silverlight 4.0 bring some news to the out of browser applications. Until now we have a very little control over the window containing the app ...

[ read more ]

Using XmlDefinition and XmlPrefix to better organize namespaces

by Andrea Boschin via Silverlight Playground on 3/15/2010 7:06:42 PM

I'm pretty sure you agree with me if I say that namespaces in XAML are the way to the hell. I mean the intricated jungle of xml namespaces, clr namespaces and prefixes you have to handle in a medium application. Every time you add a new control in the XAML, when it come from a different namespace, Visual Studio try to guess a good name for the prefix to use in XAML tags, and obviously it goes wrong. The problem comes from the need of having a reference to an Assembly containing the clr namespa ...

[ read more ]

Using XmlDefinition and XmlPrefix to better organize namespaces

by Andrea Boschin via Silverlight Playground on 3/15/2010 7:06:42 PM

I'm pretty sure you agree with me if I say that namespaces in XAML are the way to the hell. I mean the intricated jungle of xml namespaces, clr namespaces and prefixes you have to handle in a medium application. Every time you add a new control in the XAML, when it come from a different namespace, Visual Studio try to guess a good name for the prefix to use in XAML tags, and obviously it goes wrong. The problem comes from the need of having a reference to an Assembly containing the clr namespa ...

[ read more ]

Tuesday, January 12, 2010

SilverlightShow EcoContest

by Andrea Boschin via Silverlight Playground on 1/12/2010 11:41:48 PM

The team of silverlightshow.net announced today the first eco-contest. Obviously Silverlight is the focused technology but I really love the argument of the contest. The partecipants are invited to propose an application that will spread the word about climate change. After a failed of Copenaghen summit where the biggest and powerful countries have not been able to reach an agreement about the save of our planet there is for sure the need to embrace the cause and let people to be aware of this ...

[ read more ]

Saturday, January 02, 2010

Writing a server-less conferencing client with Silverlight 4.0 UDP Multicast

by Andrea Boschin via Silverlight Playground on 1/2/2010 10:42:07 PM

When I wrote my article about local connections last year, I received many questions about writing application that communicate each other with this protocol. The reason for this request is that many people believe that Silverlight being a good platform for game developers due to its great graphical features and its simplicity, so a lot of them want to implement some kind of communication for on-line collaborative games. Local connections have not been made for this kind of usage because them a ...

[ read more ]

Writing a server-less conferencing client with Silverlight 4.0 UDP Multicast

by Andrea Boschin via Silverlight Playground on 1/2/2010 10:42:07 PM

When I wrote my article about local connections last year, I received many questions about writing application that communicate each other with this protocol. The reason for this request is that many people believe that Silverlight being a good platform for game developers due to its great graphical features and its simplicity, so a lot of them want to implement some kind of communication for on-line collaborative games. Local connections have not been made for this kind of usage because them a ...

[ read more ]

Wednesday, December 16, 2009

A generic ViewModel to publish sets of objects

by Andrea Boschin via Silverlight Playground on 12/16/2009 10:14:18 PM

The programming with the MVVM pattern often requires a proliferation of types because there are more Views that need a ViewModel than you might think. You can think that you need to associate a ViewModel only to simple blocks of your user interface, but while you are writing code you often understand that there are other cases where a ViewModel is required. As an example while populating a DataGrid binding simple entities to the grid is not  good idea. A single row of a grid not only conta ...

[ read more ]

A generic ViewModel to publish sets of objects

by Andrea Boschin via Silverlight Playground on 12/16/2009 10:14:18 PM

The programming with the MVVM pattern often requires a proliferation of types because there are more Views that need a ViewModel than you might think. You can think that you need to associate a ViewModel only to simple blocks of your user interface, but while you are writing code you often understand that there are other cases where a ViewModel is required. As an example while populating a DataGrid binding simple entities to the grid is not  good idea. A single row of a grid not only conta ...

[ read more ]

Wednesday, November 18, 2009

Silverlight 4.0 beta released

by Andrea Boschin via Silverlight Playground on 11/18/2009 6:22:15 PM

Download Sample Code: SilverlightPlayground.SL4BetaTestConsole.zip (89K)   During the Keynote of the PDC 2009 a new beta of Silverlight has been announced and made available. I think very few people did expect the early release of the version 4.0, and if you think in terms of number of new features compared with the time passed since the RTW of Silverlight 3.0 - only four months - you understand the big work made by one of the most prolific teams of Microsoft. In the latest month I could ...

[ read more ]

Friday, November 13, 2009

My Model-View-ViewModel exercise

by Andrea Boschin via Silverlight Playground on 11/13/2009 1:32:04 AM

Some weeks ago I've worked on an exercise originally started to try writing a complete application with full Model-View-ViewModel pattern. I've created the application with Visual Studio 2008, Prism to integrate missing features and Ria Services July CTP to get access to a SQL Server 2008 Database. The application is a little time tracker, and I've decided to attach it to this post because it was very useful to me to understand problems and missing things about the MVVM pattern. In the next ...

[ read more ]

Friday, November 06, 2009

How to configure an AuthenticationDomainService using Ria Services Class Library

by Andrea Boschin via Silverlight Playground on 11/6/2009 11:36:01 AM

Using a Ria Services Class library to collect DomainServices and DomainContexts in a solution is a good practice because everyone know the value of having classes separated in projects instead of having them in the web project. If you try to create this kind of project and then you add an Authentication Domain Service with the July 2009 CTP of Ria Services you will find two major drawbacks. First of all you will notice the generated code does not contains a RiaContext class. RiaContext is the ...

[ read more ]

How to configure an AuthenticationDomainService using Ria Services Class Library

by Andrea Boschin via Silverlight Playground on 11/6/2009 11:36:01 AM

Using a Ria Services Class library to collect DomainServices and DomainContexts in a solution is a good practice because everyone know the value of having classes separated in projects instead of having them in the web project. If you try to create this kind of project and then you add an Authentication Domain Service with the July 2009 CTP of Ria Services you will find two major drawbacks. First of all you will notice the generated code does not contains a RiaContext class. RiaContext is the ...

[ read more ]

Friday, October 23, 2009

Handling duplicated connections on Polling Duplex

by Andrea Boschin via Silverlight Playground on 10/23/2009 12:46:00 AM

The last tip I would like to propose is a tecnique to avoid a single client machine connect multiple times to the same polling server. This may be the case when the user starts two or more instances of the browser or open the same page in multiple tabs. In this scenario may be unuseful to have every page connected to the server. In Silverlight 3.0 there is a way to check when a plugin has been loaded many times. When you try to create a LocalReceiver with the same name from two instances you get ...

[ read more ]

Friday, July 10, 2009

Silverlight 3.0 RTW: The CollectionViewSource

by andrea.nospam@nospam.boschin.it (Andrea Boschin) via Silverlight Playground on 7/10/2009 5:45:00 PM

Since the first release of WPF the framework contains a component called CollectionViewSource. The CollectionViewSource allow developer to apply sorting, filtering and grouping to in-memory collections of objects. This component is very useful when small collections (up to hundreds of items) is loaded in memory and need to give a better experience to the user. Some months ago I provided an implementation of the CollectionViewSource for Silverlight 2.0. I worked hard to implement the componen ...

[ read more ]

Silverlight 3.0 RTW: A new HTTP stack ready for REST

by andrea.nospam@nospam.boschin.it (Andrea Boschin) via Silverlight Playground on 7/10/2009 5:45:00 PM

The paradigm behind REST services is very fascinating while it allow to manipulate resources over the network relying to Uri and Http Methods. For a few of you that are not aware of what REST means I suggest to think at the web because it is the more REST thing you know. When you are pointing your browser to a "resource" on the Internet, for example a product in a ecommerce website, you will write an Url in the browser that univocally identify the product. You now can imagine to use H ...

[ read more ]

What's new about Out Of Browser in Silverlight 3.0 RTW

by andrea.nospam@nospam.boschin.it (Andrea Boschin) via Silverlight Playground on 7/10/2009 5:45:00 PM

Some months ago, a couple of minutes after the first beta of Silverlight has been released, I've posted an article explaining how to configure the new Out of Browser feature in Silverlight 3.0. Now, just after the release of the final bits, I need to return back on the argument because something has changed during this time due to additional features and modification to the API I've explained. What has changed and What has been added. There is not any substantial change to the functi ...

[ read more ]

Thursday, July 09, 2009

A code snippet to quickly write Prism commands

by andrea.nospam@nospam.boschin.it (Andrea Boschin) via Silverlight Playground on 7/9/2009 10:16:53 PM

Crawling the Internet there are many samples about how to write commands for the Composite Application Guidance, aka Prism v2.0. One of my favorites is the Erik Mork's podcast. I figure out the first time you see how many code you need, to write a working command you are really astonished. This also happened to me. But if you analyze the code you will see that the skeleton of a command is always the same, and you need to change only some names and types to have it working on different events. ...

[ read more ]

Legal Note

The content of the postings is owned by the respective author. Silverlight Feeds is not responsible for the contents of the postings. This site is automatically generated and cannot be reviewed for abusive content. If you find abusive content on Silverlight Feeds, please contact us. Designated trademarks and brands are the property of their respective owners. All rights reserved.

Advertise with us