Guest User

Untitled

a guest
Jan 16th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. <Page.Resources>
  2. <local:MyGroupStyleSelector x:Key="grpStyle"/>
  3. </Page.Resources>
  4. <GridView GroupStyleSelector="{StaticResource grpStyle}">
  5. </GridView>
  6.  
  7. public class MyGroupStyleSelector : GroupStyleSelector
  8. {
  9. protected override GroupStyle SelectGroupStyleCore(object item, uint level)
  10. {
  11. if( item as ClassType)
  12. return (GroupStyle)App.Current.Resources["grpStyle"];
  13. // use condition to chk the type of Group style u want to select from the one defined in xaml
  14. }
  15. }
  16. }
Add Comment
Please, Sign In to add comment