0
Answer

Change CollectionViewSource via control

Rick Mueller

Rick Mueller

14y
9.1k
1
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>