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
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
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
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
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
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
HI Martin, just to let you know. I got it working by overriding the LeftTemplate .
Thanks for you help
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
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