Quantcast
Viewing all articles
Browse latest Browse all 7205

How To: Create Bars Represented by Separate Containers Using ToolBarControl, MainMenuControl And StatusBarControl

This example shows how to create three bars (File, Edit and StatusBar) using the MainMenuControl, ToolBarControl and StatusBarControl controls. In this example, the BarContainerControl is used to activate the Drag & Drop functionality for bars. Actions for bar elements are defined by commands implemented in the MyViewModel class.

 

The window's DataContext is set to a MyViewModel class descendant, which is automatically generated by the DevExpress.Mvvm.POCO.ViewModelSource object. This descendant automatically generates commands for all public methods in the MyViewModel class (the OpenFileCommand, NewFileCommand and SetAlignmentCommand are generated).


Viewing all articles
Browse latest Browse all 7205

Trending Articles