Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <Page.Resources>
- <local:MyGroupStyleSelector x:Key="grpStyle"/>
- </Page.Resources>
- <GridView GroupStyleSelector="{StaticResource grpStyle}">
- </GridView>
- public class MyGroupStyleSelector : GroupStyleSelector
- {
- protected override GroupStyle SelectGroupStyleCore(object item, uint level)
- {
- if( item as ClassType)
- return (GroupStyle)App.Current.Resources["grpStyle"];
- // use condition to chk the type of Group style u want to select from the one defined in xaml
- }
- }
- }
Add Comment
Please, Sign In to add comment