Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
120
Hide / Disable a Button in Ribbon Control
posted

I want to disable or hide a button in my ribbon group:

 <ig:XamRibbonGroup Caption="Tune" x:Name="TuneGroup" >
                            <ig:ButtonTool x:Name="TuneButton" Caption="Tune" 
                                            
                                           IsEnabled="{Binding IsTuningEnabled, Source={StaticResource RTSolutionViewModel}}"
										 SmallImage="Ribbon/Query/Edit16x16.png"
										 LargeImage="Ribbon/Query/Edit32x32.png" 
										 MinimumSize="ImageOnly"
										 MaximumSize="ImageAndTextLarge"
                                            Command="{Binding TuneCommand, Source={StaticResource RTSolutionViewModel}}"
										 Click="TuneRadioButton_Click"
											   />
The IsEnabled property doesn't have any effect on the button. It is always enabled.
How do I do this?