Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ConventionManager.AddElementConvention<Pivot>( Pivot.ItemsSourceProperty, "SelectedItem", "SelectionChanged" )
- .ApplyBinding =
- ( viewModelType, path, property, element, convention ) =>
- {
- if ( ConventionManager
- .GetElementConvention( typeof( ItemsControl ) )
- .ApplyBinding( viewModelType, path, property, element, convention ) )
- {
- ConventionManager
- .ConfigureSelectedItem( element, Pivot.SelectedItemProperty, viewModelType, path );
- ConventionManager
- .ApplyHeaderTemplate( element, Pivot.HeaderTemplateProperty, null, viewModelType );
- return true;
- }
- return false;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement