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
Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K
Hi Ashley,

Indeed the code included a shortcut function that is not present in the current release. This must work with 2019.1:

   NRibbon ribbon = nDrawingViewWithRibbonControl1.Widget.GetFirstDescendant<NRibbon>();
    ribbon.Visibility = ENVisibility.Collapsed;

We hope this helps - let us know if you meet any problems.


Best Regards,
Nevron Support Team


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