Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to Access the Application Model in Code

$
0
0

This example demonstrates how to use the View.Model property to set the required value for the current ListView node's MasterDetailMode property. For this purpose, a new View Controller is created, and a SimpleAction is added to it. This Action allows end-users to switch between two modes: the current List View only and the current List View together with the corresponding Detail View.

See code in the SwitchController.cs (SwitchController.vb) file. For details, refer to the Access the Application Model in Code topic in XAF documentation.

Additionally, this example demonstrates how to use the View.SetInfo method to change the current List View. For this purpose, a new View Controller is created, and a SingleChoiceAction is added to it. This Action allows end-users to switch between List Views available for the current object.

See code in the SwitchController.cs (SwitchController.vb) file. For details, refer to the View.SetInfo Method topic in XAF documentation.


Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>