Showing posts with label SILVERLIGHT. Show all posts
Showing posts with label SILVERLIGHT. Show all posts

Tuesday, December 14, 2010

Silverlight Features

AutoComplete Box
Jeff Wilcox – Introducing the AutoCompleteBox
http://www.jeff.wilcox.name/2008/10/introducing-autocompletebox/

Resize with Browser
Silverlight Tip : How to Scale your entire App and its Elements to your Browsers Size http://blogs.silverlight.net/blogs/msnow/archive/2008/08/26/silverlight-tip-of-the-day-33-how-to-scale-your-entire-app-and-its-elements-to-your-browsers-size.aspx
Improve your user experience using the AutoCompleteBox - Jonas Follesø's
http://jonas.follesoe.no/2008/10/28/improve-your-user-experience-using-the-autocompletebox/
On browser window size change/Full screen change
http://forums.silverlight.net/forums/p/137122/306300.aspx
Getting Silverlight Plugin to resize on resize of Browser Window
http://forums.silverlight.net/forums/p/4331/13007.aspx

Managed Extensibility Framework and Silverlight MVVM
http://visualstudiomagazine.com/articles/2011/01/01/using-mef-to-expose-interfaces-in-your-silverlight-mvvm-apps.aspx

Thursday, December 02, 2010

Silverlight Applications

http://grapholite.com/
online flow charting solution.
http://www.telerik.com/products/facedeck.aspx
Silverlight Facebook Client for Desktop
iMeta Agility
http://agility.imeta.co.uk/Cloud/
Silverlight Eyes - SliBall
http://www.pay4foss.org/jumpstation/sliball/
DeepZoom
http://www.wssdemo.com/livepivot/
http://www.mumbaiindians.com/DeepZoom.aspx
http://thejit.org/demos/
http://roomseeker.eu/content/pivot.htm

Tuesday, October 26, 2010

Handling DataGrid.SelectedItems in an MVVM-friendly manner

Handling DataGrid.SelectedItems in an MVVM-friendly manner: "

An interesting question from one of the MVVM Light users today:

Is there an MVVM-friendly way to get a DataGrid’s SelectedItems into the ViewModel?

The issue there is as old as the DataGrid (that’s not very old but still): SelectedItem (singular) is a DependencyProperty and can be databound to a property in the ViewModel. SelectedItems (plural) is not a DependencyProperty.

Thankfully the answer is very simple: Use EventToCommand to call a Command in the ViewModel, and pass the SelectedItems collection as parameter. For example, if the command in the ViewModel is declared as follows:

public RelayCommand<IList> SelectionChangedCommand
{
get;
private set;
}
and (in the MainViewModel constructor):
SelectionChangedCommand = new RelayCommand<IList>(
items =>
{
if (items == null)
{
NumberOfItemsSelected = 0;
return;
}

NumberOfItemsSelected = items.Count;
});

Then the XAML markup becomes:

<sdk:DataGrid x:Name="MyDataGrid"
ItemsSource="{Binding Items}">
<i:Interaction.Triggers>
<i:EventTrigger EventName="SelectionChanged">
<cmd:EventToCommand
Command="{Binding SelectionChangedCommand}"
CommandParameter="{Binding SelectedItems,
ElementName=MyDataGrid}" />
</i:EventTrigger>
</i:Interaction.Triggers>
</sdk:DataGrid>

I slapped a quick sample and published it here (VS2010, SL4 but the concept works in SL3 and WPF too).


Cheers!


Laurent



"

Friday, October 15, 2010

Silverlight Offline Mode

Sunday, August 08, 2010

Silverlight MVVM

MVVM Frameworks

Laurent Bugnion’s Light MVVM
http://www.galasoft.ch/mvvm/getstarted/

Nikhilk Kothari’s FX Framework
http://projects.nikhilk.net/SilverlightFX

Michael Sync’s Silverlight MVVM Toolkit
http://silverlightmvvm.codeplex.com/

Microsoft’s Prism and MEF
http://compositewpf.codeplex.com/
http://mef.codeplex.com/

Caliburn and Caliburn Micro
http://caliburn.codeplex.com/

source: http://wildermuth.com/2010/08/08/DevLink_Talks_-_Slides_and_Code
MVVM Resources

Laurent Bugnion’s:: Understanding the Model-View-ViewModel Pattern (MIX10) ***
http://live.visitmix.com/MIX10/Sessions/EX14

http://blog.galasoft.ch/archive/2010/03/16/sample-code-for-my-mix10-talk-online.aspx

Shawn Wildermuth:: Silverlight Patterns: Model-View-ViewModel In Silverlight 2 ***
http://msdn.microsoft.com/en-us/magazine/dd458800.aspx
Shawn Wildermuth - Architecting Silverlight 4 with RIA Services, MEF and MVVM - Part 1 **
http://wildermuth.com/2009/12/15/Architecting_Silverlight_4_with_RIA_Services_MEF_and_MVVM_-_Part_1
Jason Dolinger:: Model-View-ViewModel **
http://blog.lab49.com/archives/2650
Stack Overflow:: Good Silverlight-MVVM Practice Example
http://stackoverflow.com/questions/413451/good-silverlight-mvvm-practice-example
Craig Shoemaker:: Hands-On Model-View-ViewModel (MVVM)
http://weblogs.asp.net/craigshoemaker/archive/2009/02/26/hands-on-model-view-viewmodel-mvvm-for-silverlight-and-wpf.aspx
Dan Wahlin:: Getting Started with the MVVM ***
http://weblogs.asp.net/dwahlin/archive/2009/12/08/getting-started-with-the-mvvm-pattern-in-silverlight-applications.aspx
THE MODEL-VIEW-VIEWMODEL (MVVM) DESIGN PATTERN FOR WPF **
http://msdn.microsoft.com/en-us/magazine/dd419663.aspx
Advanced MVVM
http://bubbleburst.codeplex.com/
http://www.identitymine.com/forward/?p=750
http://joshsmithonwpf.wordpress.com/advanced-mvvm/
MVVM in DataGrid
Handling DataGrid.SelectedItems in an MVVM-friendly manner
http://geekswithblogs.net/lbugnion/archive/2010/05/19/handling-datagrid.selecteditems-in-an-mvvm-friendly-manner.aspx
Silverlight Tips & Tricks: Make Silverlight DataGrid be more MVVM friendly =) - Alexey Zakharov's Blog
http://weblogs.asp.net/alexeyzakharov/archive/2009/06/06/silverlight-tips-amp-tricks-make-silverlight-datagrid-be-more-mvvm-friendly.aspx
Misc
A vent about MVVM Development
iPhone Sudoku in Silverlight using MVVM

Validation

Friday, June 04, 2010

Silverlight:: Get User Name

Silverlight