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

How to hide the leftautohide panel

10 Answers 246 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Sherry
Top achievements
Rank 1
Sherry asked on 02 Dec 2016, 10:47 AM

Hi,

I do not know how to explain this better, but I have taken a screenshot and I want to hide the red marked part of it.

Could someone please help on how to do it?

10 Answers, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 07 Dec 2016, 08:00 AM
Hi Sherry,

This is the AutoHideArea. Whenever you unpin a RadPane, it will go in one of those areas. You can hide them most easily by setting Visibility to Collapsed:
<Window.Resources>
  <Style TargetType="telerik:AutoHideArea" BasedOn="{StaticResource AutoHideAreaStyle}">
    <Setter Property="Visibility" Value="Collapsed"/>
  </Style>
</Window.Resources>

Or replace its template. Note that its style has several setters for a template, depending on which side this area is positioned - Tempalte, TopTemplate, BottomTemplate, LeftTemplate, RightTemplate. So in case you want them all gone - just collapse its visibility as proposed above.

Regards,
Martin
Telerik by Progress
Telerik UI for WPF is ready for Visual Studio 2017 RC! Learn more.
0
Sherry
Top achievements
Rank 1
answered on 08 Dec 2016, 08:34 AM

Thanks Martin.

I tried your first suggestion and that did not work.

Here is the code which I tried. First I get an exception then I removed the based on style property then it launched the app but when I click the button to show the pane then pane is not visible anymore.

Could you help please?

https://github.com/sherry-ummen/TerlerikDockingIssue

Thanks

0
Sherry
Top achievements
Rank 1
answered on 08 Dec 2016, 09:37 AM

Also I have tried by editing the RadDocking style. Here is the code https://gist.github.com/sherry-ummen/e43e5069e27aa57a2b4c8b01ccbe5b6d

One thing I was trying was to make the MaxWidth of the ItemsPresenter to be 0 . But the problem was that my modification to the IntemsPresenter is not visible when I inspect the app using snoop wpf. Even if I change the name of the ItemsPresenter to be ItemsPresenterElementTest is still not reflected.

And I am now lost whats happening.

 

Thanks

 

Sherry

0
Sherry
Top achievements
Rank 1
answered on 11 Dec 2016, 10:06 PM
Hello somebody could please help or direct me where I can get help?
0
Martin
Telerik team
answered on 12 Dec 2016, 08:01 AM
Hi Sherry,

The reason why the changes does not apply is most probably because the AutoHideArea does not get the style. Upon reviewing your project I notice that you use XAML-included assemblies which means you would need to set the style for the AutoHideArea directly to its instantces in the ControlTemplate of the RadDocking

I could suggest you change to the noXAML assemblies in order to use the Implicit Styles theming mechanism, which would allow you the setting of global styles for controls, components, etc, in the way I proposed, as well as allow you to use the newer themes we ship. Note that you would need to merge the dictionaries for a chosen theme as shown in the article in order for your controls to have a visual appearance.

If you do not want to use that and stick with the XAML-included assemblies, then you would need to extract the style of the RadDocking and set in it for each of the AutoHideAreas your custom style. And then set explicitly to the RadDocking that new Style and ControlTemplate.

Regards,
Martin
Telerik by Progress
Telerik UI for WPF is ready for Visual Studio 2017 RC! Learn more.
0
Sherry
Top achievements
Rank 1
answered on 12 Dec 2016, 08:50 AM

Hi Martin,

I am using your second proposal where I extracted the style using visual studio and then modified it, but the one I extracted does not reflect with my changes.

So I am still confused whats happening.

 

Sherry

0
Sherry
Top achievements
Rank 1
answered on 12 Dec 2016, 11:51 AM

HI Martin, just to let you know. I got it working by overriding the LeftTemplate .

Thanks for you help

0
Sherry
Top achievements
Rank 1
answered on 13 Dec 2016, 01:35 PM

Hi,

 

I got another issue after my fix http://www.telerik.com/forums/weird-behaviour-of-raddocking-on-multiple-screen#qm4VVMEfZ0aeDjoFAo75aQ

Could you suggest ?

 

Sherry

0
Sherry
Top achievements
Rank 1
answered on 13 Dec 2016, 03:56 PM
BTW I created this issue : https://feedback.telerik.com/Project/143/Feedback/Details/207722-raddocking-behaves-weird-on-multiple-screens
0
Nasko
Telerik team
answered on 14 Dec 2016, 12:53 PM
Hi Sherry,

We have answered you both in the forum thread and the Feedback item. Please, check my answers there.

We suggest you to continue our discussion in the newly open forum thread directly connected with your latest issue as we prefer to have separate threads for each issue for easier tracking.

Regards,
Nasko
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Docking
Asked by
Sherry
Top achievements
Rank 1
Answers by
Martin
Telerik team
Sherry
Top achievements
Rank 1
Nasko
Telerik team
Share this question
or