Rick Mueller

Rick Mueller

  • NA
  • 3
  • 21.5k

Change CollectionViewSource via control

Sep 22 2010 1:47 PM
Hello,
I have  a xaml collectionViewSource and a XmlDataProvider pointing at the xml data. It's all fine.  

The app populates by the current group "Station". If the user wants to change group settings to "Employee  by radiobutton or other control. Can this be achieved?, If yes please submit code snippet or directions to help 

Best Regards

 <CollectionViewSource.SortDescriptions>
				<scm:SortDescription PropertyName="Station" Direction="Ascending"/>
								<scm:SortDescription PropertyName="RecipeName"/>
								<scm:SortDescription PropertyName="Station"/>
								<scm:SortDescription PropertyName="PrepTime"/>
						    	<scm:SortDescription PropertyName="RecipeID"/>
								<scm:SortDescription PropertyName="Image"/>
								<scm:SortDescription PropertyName="Employee" Direction="Ascending"/>
			</CollectionViewSource.SortDescriptions>
			<CollectionViewSource.GroupDescriptions>
				<dat:PropertyGroupDescription PropertyName="Station"/>
			</CollectionViewSource.GroupDescriptions>
		</CollectionViewSource>