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?
Parents
No Data
Reply
  • 138253
    Offline posted

    Hello,

     

    Thank you for your post. I have been looking into it and I created a sample project for you following your scenario and everything seems to work ok on my side. If the sample doesn’t satisfies all your needs feel free to modify it, so it reproduces your behavior and send it back to me for further investigation.

     

    Looking forward for your reply.

    XamRibbonButtonIsEnabled.zip
Children