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

DocumentHost disables shortcuts

3 Answers 26 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 05 Nov 2013, 11:10 AM
Hi,

it seems that RadDocking.DocumentHost swallows shorctcut keys defined in a AccessText. Here's an example to reproduce the problem:

xaml:
<Window x:Class="WpfTelerikDocking.MainWindow"
        Title="MainWindow" Height="350" Width="525">
    <Grid>
      <Grid.RowDefinitions>
         <RowDefinition />
         <RowDefinition Height="Auto" />
      </Grid.RowDefinitions>
 
      <t:RadDocking>
         <t:RadDocking.DocumentHost>
            <StackPanel x:Name="mainPanel" />
         </t:RadDocking.DocumentHost>
      </t:RadDocking>
 
      <Button Grid.Row="1" Margin="5" Width="80" HorizontalAlignment="Left" Click="Button_Click">_Test</Button>
   </Grid>
</Window>


cs:
using System.Windows;
using System.Windows.Input;
using System.Windows.Controls;
 
namespace WpfTelerikDocking
{
   public partial class MainWindow : Window
   {
      public MainWindow()
      {
         InitializeComponent();
      }
 
      private void Button_Click(object sender, RoutedEventArgs e)
      {
         Button b = new Button();
         b.Content = new AccessText() { Text = "_XXX" };
         this.mainPanel.Children.Add(b);
      }
   }
}


When clicking on the "Test"-button another button appears  inside the DocumentHost with  the Content "XXX".  When pressing the ALT-key the shortcut of the "Test"-Button is being shown, but the shortcut on the XXXX-Button is missing.

Any ideas how to solve  this issue?

Regards,
Michael

3 Answers, 1 is accepted

Sort by
0
Rosen Vladimirov
Telerik team
answered on 08 Nov 2013, 06:56 AM
Hello Michael,

This is a known issue and we've logged it in our internal system. Unfortunately we are not aware of any workarounds - if the pane is in DocumentHost, the shortcut key will not be shown. The only way is to remove the DocumentHost and use stretched RadSplitContainer:
<telerik:RadSplitContainer HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" Width="{Binding ActualWidth, ElementName=Docking}">


I cannot give you an estimate for the fix as there are some higher priority issues. We are sorry for the caused inconvenience.

Regards,
Rosen Vladimirov
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Karsten Laursen
Top achievements
Rank 1
answered on 12 Nov 2013, 10:40 AM
Hi

Is this still an issue - I can't seem to find it in the issue tracker.

If it's still an issue, I'd like to vote for a fix!

Regards Karsten L.
0
Rosen Vladimirov
Telerik team
answered on 15 Nov 2013, 09:24 AM
Hello Karsten,

This issue still exists and we have logged it in our entire new feedback portal where you can vote to raise its priority and track its status here.

Feel free to contact us in case you have any other problems or concerns.

Regards,
Rosen Vladimirov
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
Docking
Asked by
Michael
Top achievements
Rank 1
Answers by
Rosen Vladimirov
Telerik team
Karsten Laursen
Top achievements
Rank 1
Share this question
or