DocumentHost disables shortcuts

4 posts, 0 answers
  1. Michael
    Michael avatar
    34 posts
    Member since:
    Oct 2009

    Posted 05 Nov 2013 Link to this post

    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
  2. Rosen Vladimirov
    Admin
    Rosen Vladimirov avatar
    640 posts

    Posted 08 Nov 2013 Link to this post

    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 >>
  3. UI for WPF is Visual Studio 2017 Ready
  4. Karsten Laursen
    Karsten Laursen avatar
    2 posts
    Member since:
    Jul 2013

    Posted 12 Nov 2013 Link to this post

    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.
  5. Rosen Vladimirov
    Admin
    Rosen Vladimirov avatar
    640 posts

    Posted 15 Nov 2013 Link to this post

    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 >>
Back to Top