File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 69
69
- Selecting an ` RibbonTabItem ` brings it into view now
70
70
- Improved keyboard navigation inside ` BackstageTabControl `
71
71
- Improved mouse wheel selection on ` RibbonTabControl `
72
+ - ` DropDownButton `
73
+ - Added support for ` UsesItemContainerTemplate ` and ` ItemContainerTemplateSelector `
72
74
- ` MenuItem `
73
75
- Added support for ` UsesItemContainerTemplate ` and ` ItemContainerTemplateSelector `
74
76
- ` IsSplit ` is now automatically set by a style trigger. If ` Command ` is not null and ` HasItems ` is true.
75
- - ` DropDownButton `
77
+ - ` RibbonMenu `
76
78
- Added support for ` UsesItemContainerTemplate ` and ` ItemContainerTemplateSelector `
77
79
78
80
- ### Bug fixes
Original file line number Diff line number Diff line change @@ -26,13 +26,12 @@ static RibbonMenu()
26
26
/// <inheritdoc />
27
27
protected override DependencyObject GetContainerForItemOverride ( )
28
28
{
29
- return new MenuItem ( ) ;
30
- }
29
+ if ( this . UsesItemContainerTemplate )
30
+ {
31
+ return base . GetContainerForItemOverride ( ) ;
32
+ }
31
33
32
- /// <inheritdoc />
33
- protected override bool IsItemItsOwnContainerOverride ( object item )
34
- {
35
- return item is System . Windows . Controls . MenuItem or Separator ;
34
+ return new MenuItem ( ) ;
36
35
}
37
36
38
37
#endregion
You can’t perform that action at this time.
0 commit comments