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

RadDiagramToolbox hide status bar

5 Answers 148 Views
Diagram
This is a migrated thread and some comments may be shown as answers.
Timon
Top achievements
Rank 1
Timon asked on 02 Mar 2017, 10:34 AM
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

5 Answers, 1 is accepted

Sort by
0
Dinko | Tech Support Engineer
Telerik team
answered on 07 Mar 2017, 08:00 AM
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 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 you to write beautiful native mobile apps using a single shared C# codebase.
0
Timon
Top achievements
Rank 1
answered on 07 Mar 2017, 02:46 PM
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
0
Dinko | Tech Support Engineer
Telerik team
answered on 10 Mar 2017, 11:39 AM
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.
0
Andrea
Top achievements
Rank 1
answered on 24 Aug 2017, 06:56 AM

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>
0
Dinko | Tech Support Engineer
Telerik team
answered on 28 Aug 2017, 02:22 PM
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 "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.
Tags
Diagram
Asked by
Timon
Top achievements
Rank 1
Answers by
Dinko | Tech Support Engineer
Telerik team
Timon
Top achievements
Rank 1
Andrea
Top achievements
Rank 1
Share this question
or