or
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}" />
private void dgv_RowActivated(object sender, Telerik.Windows.Controls.GridView.RowEventArgs e){ dgv.SelectedItems.Clear(); foreach (var t in collection) { dgv.SelectedItems.Add(t); }}bool? dialogResult = null;
Telerik.Windows.Controls.RadWindow.Confirm(new Telerik.Windows.Controls.DialogParameters()
{
Closed = (w, e) =>
{
dialogResult = e.DialogResult;
}
});
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
xmlns:telerikRTF="clr-namespace:Telerik.Windows.Documents.FormatProviders.Rtf;assembly=Telerik.Windows.Documents.FormatProviders.Rt
xmlns:telerikGridView="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.GridView"
<telerik:RadGridView ItemsSource="{Binding Equipments}" CanUserFreezeColumns="False" RowIndicatorVisibility="Collapsed" IsSynchronizedWithCurrentItem="True" IsReadOnly="True" > <telerikGridView:RadGridView.Columns> <telerikGridView:GridViewDataColumn Header="Notes" IsReadOnly="true" IsFilterable="False" IsGroupable="False" IsSortable="False"> <telerikGridView:GridViewDataColumn.CellTemplate> <DataTemplate> <Grid> <telerikRTF:RtfDataProvider Name="rtfDataProvider" Rtf="{Binding Path=CalibrationInstructions, Mode=TwoWay}" RichTextBox="{Binding ElementName=TextBoxCalibrate}"/> <telerik:RadRichTextBox Name="TextBoxCalibrate"> </telerik:RadRichTextBox> </Grid> </DataTemplate> </telerikGridView:GridViewDataColumn.CellTemplate> </telerikGridView:GridViewDataColumn> </telerikGridView:RadGridView.Columns> </telerik:RadGridView><telerik:RadRibbonWindow x:Class="EDAS.MainWindow" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation" xmlns:telerikRibbon="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.RibbonView" xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity" Title="EDAS - Environmental Documentation Alert System" Height="640" Width="1024" WindowStartupLocation="CenterScreen"> <!-- hidded code --> <telerik:RadGridView Grid.Row="1" ItemsSource="{Binding Path=Documentos}" CanUserFreezeColumns="False" RowIndicatorVisibility="Collapsed" RowDetailsVisibilityMode="VisibleWhenSelected" AutoGenerateColumns="False" x:Name="DocGrid" IsReadOnly="True" Visibility="{Binding Path=DocVisibility}"> <!-- hidded code --> <telerik:RadGridView.RowDetailsTemplate> <DataTemplate> <UserControl> <Grid DataContext="{Binding Path=AnexosContext}"> <Grid.RowDefinitions> <RowDefinition Height="Auto" /> <RowDefinition Height="Auto" /> </Grid.RowDefinitions> <Grid.Resources> <Path x:Key="Horizontal" Stretch="Fill" Opacity="1" Data="M 9,200 C9,200 450,200 450,200 " Stroke="#FFB4B4B4" StrokeThickness="1" /> </Grid.Resources> <telerik:RadCarousel Grid.Row="0" ItemsSource="{Binding Path=Anexos}" HorizontalScrollBarVisibility="Disabled"> <telerik:RadCarousel.ItemsPanel> <ItemsPanelTemplate> <telerik:RadCarouselPanel HorizontalAlignment="Stretch" Path="{StaticResource ResourceKey=Horizontal}" IsContinuous="True" IsPathVisible="True" /> </ItemsPanelTemplate> </telerik:RadCarousel.ItemsPanel> </telerik:RadCarousel> <StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Center"> <telerik:RadButton Content="Adicionar" Width="75" Command="{Binding Path=AddCommand}" /> <telerik:RadButton Content="Remover" Width="75" Command="{Binding Path=DeleteCommand}" /> </StackPanel> </Grid> </UserControl> </DataTemplate> </telerik:RadGridView.RowDetailsTemplate> </telerik:RadGridView></telerik:RadRibbonWindow>