RadDiagramToolbox hide status bar

6 posts, 0 answers
  1. Timon
    Timon avatar
    12 posts
    Member since:
    Feb 2017

    Posted 02 Mar Link to this post

    Hi guys,

    I want to implement a RadDiagramToolbox with rectangle shapes binded to database items.
    Due to the logic I only have one gallery with those shapes.Therefore the gallery category itself is quite useless for me and I can hide it with the attribute isOpen="False".

    Unfortunately below my shapes there is the status bar where I can show the categories again (OpenCloseButton) - Is it possible to hide this bar completely so no user can see the gallery behind the shapes? (see attached screenshot)

    Thanks
  2. Dinko
    Admin
    Dinko avatar
    416 posts

    Posted 07 Mar Link to this post

    Hi Timon,

    Thank you for your interest in RadDiagram control.

    To close the gallery you can try setting the IsOpen property of the RadDiagramToolbox to false. As for the bottom border which contains the open/close button you can extract and edit the default template of the RadDiagramToolbox. In your case, after you have extracted the template you can navigate to the RadButton with x:Name="OpenCloseButton" and remove the whole border which wraps the button. You can take a look at the Editing Control Templates help article in our documentation which describes how you can extract and edit the default template of the controls. 

    For your convenience, we have created a sample project and attached it to this reply which demonstrates the approach mentioned above. 

    Regards,
    Dinko
    Telerik by Progress
    Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
  3. Timon
    Timon avatar
    12 posts
    Member since:
    Feb 2017

    Posted 07 Mar Link to this post

    Hi Dinko,

    thanks for your reply. That's exactly what I was looking for.

    In the same procedure I can now look for the ScrollViewer to the right, this should also only be visible if it's necessary.

    Kind Regards,
    Timon
  4. Dinko
    Admin
    Dinko avatar
    416 posts

    Posted 10 Mar Link to this post

    Hello Timon,

    We are happy to hear that the provided solution works for your scenario.

    If you have more questions you can open a new post with your question.

    Regards,
    Dinko
    Telerik by Progress
    Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
  5. Andrea
    Andrea avatar
    2 posts
    Member since:
    Nov 2013

    Posted 24 Aug Link to this post

    Hello, following the approach I was able to hide the gallery. But I do not understand how to change the visibility of the vertical scrollbar which is inside the ContentPresenter

    <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1,0" Background="{DynamicResource {x:Static telerik:Office2016ResourceKey.AlternativeBrush}}" Grid.Row="1">
                  <ContentPresenter x:Name="SelectedTabContent" ContentTemplate="{TemplateBinding ContentTemplate}" ScrollViewer.VerticalScrollBarVisibility="Hidden"/>
                   
              </Border>
  6. Dinko
    Admin
    Dinko avatar
    416 posts

    Posted 28 Aug Link to this post

    Hello Andrea,

    If you want to disable the scroll viewer you can extract the default template of the RadDiagramToolboxGroup and navigate to a Border with x:Name="OuterBorder". The content of the Border is ScrollViewer. You can set its VerticalScrollBarVisibility to Disabled for example.

    I have modified the project from my previous reply to demonstrate how you can remove the vertical scroll bar.

    Regards,
    Dinko
    Progress Telerik
    Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Back to Top