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

RadPane is cutoff during mouse over while unpinned

2 Answers 25 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Mike
Top achievements
Rank 1
Mike asked on 18 May 2016, 02:27 PM

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 Answers, 1 is accepted

Sort by
0
Nasko
Telerik team
answered on 20 May 2016, 11:57 AM
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.
0
Mike
Top achievements
Rank 1
answered on 09 Jun 2016, 08:05 PM

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):

[quote]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 [/quote]

Tags
Docking
Asked by
Mike
Top achievements
Rank 1
Answers by
Nasko
Telerik team
Mike
Top achievements
Rank 1
Share this question
or