Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version
Go to top

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

, 29 Jun 2012
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.
Multiselect_in_VM.zip
Multiselect in VM
~$ltiselect Binding in ViewModel-Metro.docx
~$w Microsoft Word Document.docx
Ext
winrtbehaviors-14177.zip
winrtbehaviors-14177
Multiselect Binding in ViewModel-Metro.docx
MultiselectSample
depend
GalaSoft.MvvmLight.Win8.dll
WinRtBehaviors.dll
MultiselectSample
Assets
Logo.png
SmallLogo.png
SplashScreen.png
StoreLogo.png
bin
Debug
AppX
Assets
Logo.png
SmallLogo.png
SplashScreen.png
StoreLogo.png
Common
GalaSoft.MvvmLight.Win8.dll
microsoft.system.package.metadata
S-1-5-21-860198490-3370951563-2996008965-1001.pckgdep
MultiselectSample.exe
resources.pri
vs.appxrecipe
WinRtBehaviors.dll
WinRtExt.dll
Common
GalaSoft.MvvmLight.Win8.dll
MultiselectSample.build.appxrecipe
MultiselectSample.exe
resources.pri
WinRtBehaviors.dll
WinRtExt.dll
WinRtExt.pri
Common
MultiselectSample_TemporaryKey.pfx
obj
Debug
Common
intermediatexaml
TempPE
Package.appxmanifest
Properties
WinRtBehaviors
bin
Debug
WinRtBehaviors.dll
WinRtBehaviors.pri
obj
Debug
TempPE
Properties
WinRtBehaviors.csproj.vspscc
WinRtBehaviors.vssscc
WinRtExt
Behavior
bin
ARM
Debug
Release
Debug
WinRtBehaviors.dll
WinRtBehaviors.pri
WinRtExt.dll
WinRtExt.pri
Release
x64
Debug
Release
x86
Debug
Release
obj
Debug
TempPE
Properties
ori
<?xml version="1.0" encoding="utf-8"?>
<Package xmlns="http://schemas.microsoft.com/appx/2010/manifest" xmlns:build="http://schemas.microsoft.com/developer/appx/2012/build" IgnorableNamespaces="build">
  <!--
    THIS PACKAGE MANIFEST FILE IS GENERATED BY THE BUILD PROCESS.

    Changes to this file will be lost when it is regenerated. To correct errors in this file, edit the source .appxmanifest file.

    For more information on package manifest files, see http://go.microsoft.com/fwlink/?LinkID=241727
  -->
  <Identity Name="7ef327bc-6146-4382-921f-d044639031e8" Publisher="CN=Fun" Version="1.0.0.0" ProcessorArchitecture="neutral" />
  <Properties>
    <DisplayName>MultiselectSample</DisplayName>
    <PublisherDisplayName>Fun</PublisherDisplayName>
    <Logo>Assets\StoreLogo.png</Logo>
  </Properties>
  <Prerequisites>
    <OSMinVersion>6.2.0</OSMinVersion>
    <OSMaxVersionTested>6.2.0</OSMaxVersionTested>
  </Prerequisites>
  <Resources>
    <Resource Language="EN-US" />
  </Resources>
  <Applications>
    <Application Id="App" Executable="MultiselectSample.exe" EntryPoint="MultiselectSample.App">
      <VisualElements DisplayName="MultiselectSample" Logo="Assets\Logo.png" SmallLogo="Assets\SmallLogo.png" Description="MultiselectSample" ForegroundText="light" BackgroundColor="#464646">
        <DefaultTile ShowName="allLogos" />
        <SplashScreen Image="Assets\SplashScreen.png" />
      </VisualElements>
    </Application>
  </Applications>
  <Capabilities>
    <Capability Name="internetClient" />
  </Capabilities>
  <build:Metadata>
    <build:Item Name="TargetFrameworkMoniker" Value=".NETCore,Version=v4.5" />
    <build:Item Name="VisualStudio" Version="11.0" />
    <build:Item Name="OperatingSystem" Version="6.2.8400.0 (winmain_win8rc.120518-1423)" />
    <build:Item Name="Microsoft.Build.AppxPackage.dll" Version="11.0.50522.1" />
    <build:Item Name="Microsoft.Windows.UI.Xaml.Build.Tasks.dll" Version="4.0.30319.17561" />
  </build:Metadata>
</Package>

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)

Share

About the Author

Fun@learn
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

| Advertise | Privacy | Mobile
Web02 | 2.8.140916.1 | Last Updated 29 Jun 2012
Article Copyright 2012 by Fun@learn
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid