Change context menu text

Docking/MDI for Avalonia Forum

Posted 2 days ago by Dirk Zellerfeld
Version: 25.2.1
Avatar

Is it possible to change the context menu text of the item "Close All Documents" if you right click on a document header or would we need to purchase the blueprint license for that?

Comments (1)

Answer - Posted 11 hours ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Dirk,

Yes all UI strings in our products are string resources you can browse with the String Resource Browser utility off the title bar View menu in our Sample Browser app.  That utility lets you generate strings like this that you can set at app startup before UI loads to customize the strings.

ActiproSoftware.Properties.Docking.SR.SetCustomString(ActiproSoftware.Properties.Docking.SRName.UICommandCloseAllDocumentsText, "Test");

If you want to customize the menu further than just changing UI strings, like adding other new items, you can do that with the DockSite.MenuOpening event as seen in our Custom Context Menu QuickStart.

Blueprint is not needed to do any of that.


Actipro Software Support

Add Comment

Please log in to a validated account to post comments.