-
| The Best from DevelopMentor | MORE |
- Using Model – View – ViewModel with Silverlight
have found it extremely easy to use when developing very different applications and have used the design pattern recently in both ASP.NET, WPF and Silverlight applications. Even thought the UI technology used doesn't change the basic MVVM pattern there are some subtle differences, like not easily being able to use ICommand in Silverlight, so I decided to create a small Silverlight sample. The basic structure goes like this: The user interacts with a View, implemented as a Silverlight user control. Tags: NET DevCenter WPF Silverlight 11: {. 13: set. 14: {.
The Problem Solver - Tuesday, April 7, 2009 - Easier Async for Silverlight Apps using MVVM
WPF and Silverlight have Dispatcher.CheckAccess / Dispatcher.BeginInvoke. Technical MVVM SilverlightIt makes sense to execute long-running tasks on a background thread, in order to keep the UI responsive by not tying up the main thread. However, as is the case with other UI frameworks such as Windows Forms or WPF, you should not touch UI elements from worker threads. This has to do with how Windows apps process messages, which are always handled on the thread that created the visual element. Windows Forms has the Control.InvokeRequired / Control.BeginInvoke API.
Tony and Zuzana's World - Saturday, January 29, 2011 - Paging with the Silverlight RIA services DomainDataSource
Using the declarative DomainDataSource that is part of the upcoming Silverlight 3 RIA services makes it quite easy to work with data. Tags: NET VB DevCenter Silverlight Data Access ASP.NET.All you need to do is add a DomainDataSource control to the the XAML, point it to the generated DomainContext class (in this case NorthwindContext) and tell it which method to use to load the data from the web service(in this case LoadCustomers). Next add a DataGrid to display the data and you are good to go. Adding paging. assume this is just a small bug in the current preview. Enjoy!
The Problem Solver - Monday, April 27, 2009 - Madam Silverlight
Just wanted to call out attention to a new Silverlight site created by Maine’s own Carolyn Smith: www.silverlightmadam.com. Silverlight Madam is the creation of Carolyn Smith. Then she discovered computer graphics and now she specializes in creating art in Silverlight.”. SilverlightFor many years Carolyn's preferred medium was watercolors. Note: Carolyn also runs the site www.pixycolors.com.
DevelopMentor Courses - Thursday, June 9, 2011 - Using dynamic objects in Silverlight 4
Note: This blog post is written using Silverlight 4.0 RC 1 One of the cool new features in Silverlight 4 is the ability to data bind to indexed properties. Tags: NET Silverlight ASP.NET VS2010 This means that even if you don’t know at design time what properties you data object has you can still data bind to them. The syntax is very similar to a normal data binding, only in this case you need to use the [key] syntax instead. For example in example below the FirstName is a regular property while the LastName below is an indexed property. get; set; }. public Person(). {.
The Problem Solver - Monday, April 12, 2010