Programmatically Hide Ribbon


Author
Message
Ashley Davy
Ashley Davy
Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)
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
Ashley Davy
Ashley Davy
Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)Forum Newbie (8 reputation)
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
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search