Click here to Skip to main content
15,881,687 members
Articles / Desktop Programming / WPF

Managing Multiple selection in View Model (.NET Metro Style Apps)

Rate me:
Please Sign up or sign in to vote.
4.44/5 (6 votes)
29 Jun 2012CPOL3 min read 73.5K   3K   11  
This article provides Attached Behavior based approach to manage Multiple Selection in Collection Based UI control from the View Model. All the code in this article is strictly applicable to Win 8 metro style apps. Though the Behaviors can be easily adapted to WPF/Silverlight.

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 11
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WinRtBehaviors", "WinRtBehaviors\WinRtBehaviors.csproj", "{73DB4065-9B92-45BD-B740-D80883FF84AB}"
EndProject
Global
	GlobalSection(TeamFoundationVersionControl) = preSolution
		SccEnterpriseProvider = {4CA58AB2-18FA-4F8D-95D4-32DDF27D184C}
		SccLocalPath0 = .
		SccLocalPath1 = WinRtBehaviors
		SccNumberOfProjects = 2
		SccProjectName1 = WinRtBehaviors
		SccProjectUniqueName1 = WinRtBehaviors\\WinRtBehaviors.csproj
		SccTeamFoundationServer = https://tfs.codeplex.com/tfs/tfs25
	EndGlobalSection
	GlobalSection(SolutionConfigurationPlatforms) = preSolution
		Debug|ARM = Debug|ARM
		Debug|Any CPU = Debug|Any CPU
		Debug|x64 = Debug|x64
		Debug|x86 = Debug|x86
		Release|ARM = Release|ARM
		Release|Any CPU = Release|Any CPU
		Release|x64 = Release|x64
		Release|x86 = Release|x86
	EndGlobalSection
	GlobalSection(ProjectConfigurationPlatforms) = postSolution
		{73DB4065-9B92-45BD-B740-D80883FF84AB}.Debug|ARM.ActiveCfg = Debug|ARM
		{73DB4065-9B92-45BD-B740-D80883FF84AB}.Debug|ARM.Build.0 = Debug|ARM
		{73DB4065-9B92-45BD-B740-D80883FF84AB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
		{73DB4065-9B92-45BD-B740-D80883FF84AB}.Debug|Any CPU.Build.0 = Debug|Any CPU
		{73DB4065-9B92-45BD-B740-D80883FF84AB}.Debug|x64.ActiveCfg = Debug|x64
		{73DB4065-9B92-45BD-B740-D80883FF84AB}.Debug|x64.Build.0 = Debug|x64
		{73DB4065-9B92-45BD-B740-D80883FF84AB}.Debug|x86.ActiveCfg = Debug|x86
		{73DB4065-9B92-45BD-B740-D80883FF84AB}.Debug|x86.Build.0 = Debug|x86
		{73DB4065-9B92-45BD-B740-D80883FF84AB}.Release|ARM.ActiveCfg = Release|ARM
		{73DB4065-9B92-45BD-B740-D80883FF84AB}.Release|ARM.Build.0 = Release|ARM
		{73DB4065-9B92-45BD-B740-D80883FF84AB}.Release|Any CPU.ActiveCfg = Release|Any CPU
		{73DB4065-9B92-45BD-B740-D80883FF84AB}.Release|Any CPU.Build.0 = Release|Any CPU
		{73DB4065-9B92-45BD-B740-D80883FF84AB}.Release|x64.ActiveCfg = Release|x64
		{73DB4065-9B92-45BD-B740-D80883FF84AB}.Release|x64.Build.0 = Release|x64
		{73DB4065-9B92-45BD-B740-D80883FF84AB}.Release|x86.ActiveCfg = Release|x86
		{73DB4065-9B92-45BD-B740-D80883FF84AB}.Release|x86.Build.0 = Release|x86
	EndGlobalSection
	GlobalSection(SolutionProperties) = preSolution
		HideSolutionNode = FALSE
	EndGlobalSection
EndGlobal

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer (Senior)
India India
Software Engineer based out in Noida.

Technology skillset – .NET, WPF, WCF, LINQ, XAML.

Started blogging on http://1wpf.wordpress.com/


Stackoverflow Profile -> http://stackoverflow.com/users/649524/tilak

Comments and Discussions