0
如何高亮顯示上次點擊的按鈕,以便用戶確保顯示正確的內容? (我想有1個按鈕突出顯示特定內容,直到另一個被點擊)。高亮顯示最後一個RibbonButton
我正在使用功能區(System.Windows.Controls.Ribbon)。 應該突出顯示的按鈕位於RibbonGroup內部,它們用於更改主要內容。
其他按鈕應該表現一般(我想限制被點擊之後高亮顯示的按鈕數)
我使用模型 - 視圖 - 視圖模型模式
<Ribbon DockPanel.Dock="top">
<RibbonTab Header="Home">
<RibbonGroup Header="Process Flow">
<StackPanel Orientation="Horizontal">
<RibbonButton Label="Style change" LargeImageSource="pack://application:,,,/Resources/StyleChange.png"></RibbonButton>
<RibbonButton Label="Settings" Command="{Binding ChangeToSettingContentCommand}" LargeImageSource="pack://application:,,,/Resources/Settings.png"></RibbonButton>
<RibbonButton Label="Firmware changes" LargeImageSource="pack://application:,,,/Resources/Code.png"></RibbonButton>
<RibbonButton x:Name="testsButton" Label="Tests" Command="{Binding ChangeToTestContentCommand}" LargeImageSource="pack://application:,,,/Resources/test.png"></RibbonButton>
</StackPanel>
</RibbonGroup>