How to hide the leftautohide panel

11 posts, 0 answers
  1. Sherry
    Sherry avatar
    4 posts
    Member since:
    Mar 2015

    Posted 02 Dec 2016 Link to this post

    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?

  2. Martin
    Admin
    Martin avatar
    81 posts

    Posted 07 Dec 2016 Link to this post

    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.
  3. Sherry
    Sherry avatar
    15 posts
    Member since:
    May 2014

    Posted 08 Dec 2016 in reply to Martin Link to this post

    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

  4. Sherry
    Sherry avatar
    15 posts
    Member since:
    May 2014

    Posted 08 Dec 2016 in reply to Martin Link to this post

    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

  5. Sherry
    Sherry avatar
    15 posts
    Member since:
    May 2014

    Posted 11 Dec 2016 Link to this post

    Hello somebody could please help or direct me where I can get help?
  6. Martin
    Admin
    Martin avatar
    81 posts

    Posted 12 Dec 2016 Link to this post

    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.
  7. Sherry
    Sherry avatar
    15 posts
    Member since:
    May 2014

    Posted 12 Dec 2016 in reply to Martin Link to this post

    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

  8. Sherry
    Sherry avatar
    15 posts
    Member since:
    May 2014

    Posted 12 Dec 2016 in reply to Sherry Link to this post

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

    Thanks for you help

  9. Sherry
    Sherry avatar
    15 posts
    Member since:
    May 2014

    Posted 13 Dec 2016 Link to this post

    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

  10. Sherry
    Sherry avatar
    15 posts
    Member since:
    May 2014

    Posted 13 Dec 2016 Link to this post

    BTW I created this issue : https://feedback.telerik.com/Project/143/Feedback/Details/207722-raddocking-behaves-weird-on-multiple-screens
  11. Nasko
    Admin
    Nasko avatar
    666 posts

    Posted 14 Dec 2016 Link to this post

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