Posted 14 years ago
by Mick
Version: 11.1.0542
Platform: .NET 4.0
Environment: Windows Vista (32-bit)
I manually add items to my PopupButton on the ribbon, and when the popup shows, the first item is selected (highlighted).
Steps to reproduce:
1) Create a new WPF window and copy this code, modifying class names / namespaces as needed2) Run the project and click the button on the ribbon.
---
Result: "Button 1" is initially selected (I don't think it should be - correct me if I'm mistaken or if I caused this by not using the controls correctly)
Thank you,
Mick
Steps to reproduce:
1) Create a new WPF window and copy this code, modifying class names / namespaces as needed
<Window
x:Class="RibbonSamples.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:ribbon="http://schemas.actiprosoftware.com/winfx/xaml/ribbon"
Height="480"
Width="640"
>
<Grid>
<DockPanel>
<ribbon:Ribbon>
<ribbon:Tab Label="Tab">
<ribbon:Group Label="Group">
<ribbon:PopupButton Label="Button">
<ribbon:PopupButton.PopupContent>
<StackPanel>
<ribbon:Button Label="Button 1" />
<ribbon:Separator />
<ribbon:Button Label="Button 2" />
</StackPanel>
</ribbon:PopupButton.PopupContent>
</ribbon:PopupButton>
</ribbon:Group>
</ribbon:Tab>
</ribbon:Ribbon>
</DockPanel>
</Grid>
</Window>
---
Result: "Button 1" is initially selected (I don't think it should be - correct me if I'm mistaken or if I caused this by not using the controls correctly)
Thank you,
Mick