
I want to use the WindowTitleBarButtonBaseStyleKey style with a popupbutton in the TitleBarRightContent area of a WindowChrome. It works fine if it uses the PopupMenu property, but not when the PopupContent property is used. If I remove the style, it works, but the styling is also not applied so it doesn't fit with the rest of the PopupButtons that do use a PopupMenu.
<shared:PopupButton DisplayMode="ButtonOnly"
Style="{DynamicResource {x:Static themes:SharedResourceKeys.WindowTitleBarButtonBaseStyleKey}}">
<shared:DynamicImage Source="pack://application:,,,/Icons/Arrange16.png" />
<shared:PopupButton.PopupContent>
<TextBlock>This is some content</TextBlock>
</shared:PopupButton.PopupContent>
</shared:PopupButton>
What appears to be happening is that the PopupButton is selected (you can see the color change) but nothing else changes (no popup content). Click away from the button and the color returns to unselected. So, it is trying to change but not fully.
What am I missing?
Bob