Nevron Forum
Back
Login
Register
Login
Register
Home
»
Nevron Open Vision for NET
»
NOV Diagram for .NET
»
Programmatically Hide Ribbon
Programmatically Hide Ribbon
Post Reply
Programmatically Hide Ribbon
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
Goto Topics Forum
Author
Message
Ashley Davy
Ashley Davy
posted 4 Years Ago
ANSWER
Topic Details
Group: Forum Members
Posts: 36,
Visits: 119
Is there a way to programmatically hide the ribbon when using the NDrawingViewWithRibbonControl (at some point I just want to see the drawing surface)? If not how would I transfer the drawing on the current NDrawingViewWithRibbonControl to another NDrawingViewControl?
Thanks,
Ashley
Reply
Like
0
Replies
Nevron Support
Nevron Support
posted 4 Years Ago
ANSWER
Post Details
Group: Administrators
Posts: 3.1K,
Visits: 4.2K
Hi,
To hide the ribbon of a drawing view with ribbon control, you can use the following piece of code to first get the ribbon and then set its
Visibility
to
collapsed
:
C# Code
NRibbon ribbon = drawingViewWithRibbon.GetFirstDescendant<NRibbon>();
ribbon.Visibility = ENVisibility.Collapsed;
Visual Basic Code
Dim ribbon As NRibbon = drawingViewWithRibbon.GetFirstDescendant(Of NRibbon)()
ribbon.Visibility = ENVisibility.Collapsed
Best Regards,
Nevron Support Team
Reply
Like
0
Ashley Davy
Ashley Davy
posted 4 Years Ago
ANSWER
Post Details
Group: Forum Members
Posts: 36,
Visits: 119
The code that was suggested shows errors. The class NDrawingViewWithRibbonControl does not have a direct method call GetFirstDescendant. I also tried the following code but the ribbon is return as null.
Dim ribbon As NRibbon = Draw1.View.GetFirstDescendant(Of NRibbon)()
ribbon.Visibility = ENVisibility.Collapsed
Thanks,
Ashley
Reply
Like
0
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Threaded View
Threaded View
Programmatically Hide Ribbon
Ashley Davy
-
4 Years Ago
Hi, To hide the ribbon of a drawing view with ribbon control, you can...
Nevron Support
-
4 Years Ago
The code that was suggested shows errors. The class...
Ashley Davy
-
4 Years Ago
Hello, I could not get the sample code you gave to compile. I had to...
Ashley Davy
-
4 Years Ago
Hi Ashley, Indeed the code included a shortcut function that is not...
Nevron Support
-
4 Years Ago
Post Reply
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search