메뉴 가져 오기 메뉴 항목 아이콘은 마지막 menuItem에만 나타납니다. 만약 내가 모든 MenuItems 아이콘에있는 이미지를 가지고 디버그하는 동안 나는 단지 마지막 menuItem 아이콘에 이미지가 있습니다 스눕 애플 리케이션. 또한 submenuItem을 추가하면 menuItem의 아이콘이 사라지고 일단 하위 메뉴가 열리고 마지막 하위 메뉴가 아이콘이됩니다 ... 어떤 생각입니까? 추신 : 메뉴 항목에 대한 툴팁도 작동하지 않습니다. caliburn 마이크로 및 유창한 리본 컨트롤을 사용하고 있습니다.WPF - MenuItem 누락 아이콘/이미지
<ControlTemplate x:Key="dropDownButton">
<ef:DropDownButton Header="{Binding DisplayName}"
ItemsSource="{Binding Items}"
LargeIcon="{Binding LargeIconPath}"
cm:Message.Attach="ClickAction()"
ef:KeyTip.Keys="{Binding KeyTip}">
<ef:DropDownButton.ItemContainerStyle>
<Style TargetType="MenuItem">
<Setter Property="Header"
Value="{Binding DisplayName}"/>
<Setter Property="Icon">
<Setter.Value>
<Image Source="{Binding Path=IconPath}"/>
</Setter.Value>
</Setter>
<Setter Property="ItemsSource"
Value="{Binding Items}"/>
<Setter Property="cm:Message.Attach"
Value="ClickAction()"/>
<Setter Property="ef:KeyTip.Keys"
Value="{Binding KeyTip}"/>
<Setter Property="ToolTip">
<Setter.Value>
<ef:ScreenTip Title="{Binding DisplayName}"
HelpTopic="ScreenTip help ..."
Image="{Binding LargeIconPath}"
Text="Text for ScreenTip"/>
</Setter.Value>
</Setter>
</Style>
</ef:DropDownButton.ItemContainerStyle>
<ef:DropDownButton.ToolTip>
<ef:ScreenTip Title="{Binding DisplayName}"
HelpTopic="ScreenTip help ..."
Image="{Binding LargeIconPath}"
Text="Text for ScreenTip"/>
</ef:DropDownButton.ToolTip>
</ef:DropDownButton>
IMHO 비슷한 주제에 대한 해결책 : "http://stackoverflow.com/questions/6177550/menuitem-style-with-icon-creates-only-one-icon"이 더 좋습니다. –