RadPane is cutoff during mouse over while unpinned

3 posts, 0 answers
  1. Mike
    Mike avatar
    2 posts
    Member since:
    Apr 2016

    Posted 18 May Link to this post

    Hi,

    I am currently experiencing an issue where unpinned panes are cut off when mousing over the auto-hide tabs.
    What's strange is that the first tab sizes correctly (could be any of the panes depending on the first one unpinned).

    Here is a simple example:

    <Window x:Class="Docking_Test.MainWindow"
            Title="MainWindow" WindowState="Maximized">
        <Grid>
            <telerik:RadDocking x:Name="radDock" HasDocumentHost="False">
                <telerik:RadSplitContainer Orientation="Vertical">
                    <telerik:RadSplitContainer InitialPosition="DockedTop" telerik:ProportionalStackPanel.RelativeSize="100,80">
                        <telerik:RadSplitContainer InitialPosition="DockedLeft" telerik:ProportionalStackPanel.RelativeSize="40,100" Orientation="Vertical">
                            <telerik:RadPaneGroup>
                                <telerik:RadPane Header="Gauge" ContextMenuTemplate="{x:Null}">
                                    <Viewbox Stretch="Uniform">
                                        <Border BorderThickness="5" BorderBrush="Black">
                                            <Rectangle Fill="Red" Width="600" Height="700"/>
                                        </Border>
                                    </Viewbox>
                                </telerik:RadPane>
                            </telerik:RadPaneGroup>
                        </telerik:RadSplitContainer>
                        <telerik:RadSplitContainer InitialPosition="DockedRight" telerik:ProportionalStackPanel.RelativeSize="60,100" Orientation="Vertical">
                            <telerik:RadPaneGroup>
                                <telerik:RadPane Header="Charts" ContextMenuTemplate="{x:Null}">
                                    <Border BorderThickness="5" BorderBrush="Black">
                                        <Rectangle Fill="Green" Width="1290" Height="700"/>
                                    </Border>
                                </telerik:RadPane>
                            </telerik:RadPaneGroup>
                        </telerik:RadSplitContainer>
                    </telerik:RadSplitContainer>
                    <telerik:RadSplitContainer InitialPosition="DockedBottom" telerik:ProportionalStackPanel.RelativeSize="100,20">
                        <telerik:RadPaneGroup>
                            <telerik:RadPane Header="Timeline" ContextMenuTemplate="{x:Null}">
                                <Border BorderThickness="5" BorderBrush="Black">
                                    <Rectangle Fill="Blue" Width="1900" Height="300"/>
                                </Border>
                            </telerik:RadPane>
                        </telerik:RadPaneGroup>
                    </telerik:RadSplitContainer>
                </telerik:RadSplitContainer>
            </telerik:RadDocking>
        </Grid>
    </Window>

     

    Any help would be greatly appreciated!

    Thanks,

    Mike

  2. Nasko
    Admin
    Nasko avatar
    588 posts

    Posted 20 May Link to this post

    Hello Mike,

    We are aware of the observed by you issue and it is caused by the native WPF Popup that we are using in our implementation of the AutoHideArea of RadDocking. Currently the native WPF Popup could not cover more than 75% of the screen and because of that it shrinks its measures when it has a size bigger that these percents. Unfortunately, because this is a limitation to the native WPF Popup currently no proper workaround could be proposed except changing the value of the AutoHideWidh when the pane is unpinned - the value should be smaller than the percents mentioned above:
    private void radDock_PaneStateChange(object sender, Telerik.Windows.RadRoutedEventArgs e)
    {
        var pane = e.OriginalSource as RadPane;
        if(pane!= null && !pane.IsPinned)
        {
            //set some appropriate AutoHideAreaWidth in order the Popup to be less than 75% of the screen
            pane.AutoHideWidth = 150;
        }
    }

    We hope the provided information will be helpful for you.

    Regards,
    Nasko
    Telerik
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Mike
    Mike avatar
    2 posts
    Member since:
    Apr 2016

    Posted 09 Jun Link to this post

    For those that run into the same issue, I got a response through e-mail (for some reason it's not showing in the thread):

    Hello Mike,

    We are aware of the observed by you issue and it is caused by the native WPF Popup that we are using in our implementation of the AutoHideArea of RadDocking. Currently the native WPF Popup could not cover more than 75% of the screen and because of that it shrinks its measures when it has a size bigger that these percents. Unfortunately, because this is a limitation to the native WPF Popup currently no proper workaround could be proposed except changing the value of the AutoHideWidh when the pane is unpinned - the value should be smaller than the percents mentioned above:
    private void radDock_PaneStateChange(object sender, Telerik.Windows.RadRoutedEventArgs e)
    {
        var pane = e.OriginalSource as RadPane;
        if(pane!= null && !pane.IsPinned)
        {
            //set some appropriate AutoHideAreaWidth in order the Popup to be less than 75% of the screen
            pane.AutoHideWidth = 150;
        }
    }

    We hope the provided information will be helpful for you.

    Regards,
    Nasko
    Telerik 

Back to Top