This is a migrated thread and some comments may be shown as answers.

RibbonButton command fires if button is not visible

1 Answer 51 Views
RibbonView and RibbonWindow
This is a migrated thread and some comments may be shown as answers.
Bill
Top achievements
Rank 1
Bill asked on 23 May 2012, 07:08 PM
I have a ribbonview with 2 close buttons.
Only one button is visible at a time using the visible property binding
The problem is that when I use the KeyTip for the close button (CS for both) the first
command always fires even if that button is not visible.
I would think that it should skip over the invisible button and fire the command for the
second button.
Is this a bug/missing functionality or expected behaviour?
  




          
<!--  Close SIN (Client Info)  -->                            <telerik:RadRibbonButton CollapseToMedium="Never"                                      Command="{x:Static InfraWorkCommands:WorkCommands.CloseClientInformationCommand}"                                      LargeImage="/SC.NWS.Application;component/Resources/Icons/icn-Close_32.png"                                      Size="Large"                                      telerik:KeyTipService.AccessText="{Binding .[ClientInformationModuleResources.KeyTip_Close],                                                                                 FallbackValue=CS,                                                                                 Mode=OneWay,                                                                                 Source={StaticResource localization}}"                                      Text="{Binding .[ClientInformationModuleResources.Menu_Close_SIN],                                                     FallbackValue='Close',                                                     Mode=OneWay,                                                     Source={StaticResource localization}}"                                      ToolTip="{Binding .[ClientInformationModuleResources.Menu_Close_Client_Info_TT],                                                        FallbackValue='Close the current open page',                                                        Mode=OneWay,                                                        Source={StaticResource localization}}"                                      ToolTipService.ShowOnDisabled="True"                                      Visibility="{Binding IsNotGeneralInquiry,                                                           Mode=TwoWay,                                                           UpdateSourceTrigger=PropertyChanged}" />                       <!--  Close General Inquiry  -->                      <telerik:RadRibbonButton CollapseToMedium="Never"                                      Command="{x:Static InfraWorkCommands:WorkCommands.CloseGeneralInquiryCommand}"                                      LargeImage="/SC.NWS.Application;component/Resources/Icons/icn-Close_32.png"                                      Size="Large"                                      telerik:KeyTipService.AccessText="{Binding .[ClientInformationModuleResources.KeyTip_Close],                                                                                 FallbackValue=CS,                                                                                 Mode=OneWay,                                                                                 Source={StaticResource localization}}"                                      Text="{Binding .[ClientInformationModuleResources.Menu_Close],                                                     FallbackValue='Close SIN',                                                     Mode=OneWay,                                                     Source={StaticResource localization}}"                                      ToolTip="{Binding .[ClientInformationModuleResources.Menu_Close_General_Inquiry_TT],                                                        FallbackValue='Close the current open page',                                                        Mode=OneWay,                                                        Source={StaticResource localization}}"                                      ToolTipService.ShowOnDisabled="True"                                      Visibility="{Binding IsNotClientInformation,                                                           Mode=TwoWay,                                                           UpdateSourceTrigger=PropertyChanged}" />

1 Answer, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 28 May 2012, 02:56 PM
Hello Bill,

Thank you for reporting this KeyTips issue, we can confirm that it is a bug and therefore I logged it in our PITS. I also updated your Telerik account accordingly.

All the best,
Tina Stancheva
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
RibbonView and RibbonWindow
Asked by
Bill
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Share this question
or