Skip to content

How to implement a View Controller that accesses layout controls and customizes them

License

Notifications You must be signed in to change notification settings

DevExpress-Examples/xaf-how-to-access-a-tab-control-in-a-detail-view-layout

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XAF - How to access a tab control in a Detail View layout

This example implements a View Controller that accesses layout controls and customizes them as required. In particular, the second tab in the tab control should become active when the detail form is opened.

WinForms

Du2Er0SPZV

ASP.NET Core Blazor

|image

Implementation Details

  1. This functionality is implemented in the WinCustomizeTabControlViewController.cs and BlazorCustomizeTabControlViewController.cs classes, added to the WinForms and Blazor application projects respectively. Copy these classes to the corresponding projects in your test solution.

  2. To identify the layout element by the MyTabbedGroup string, make sure this identifier is specified under the Views | YourBusinessObject_DetailView | Layout node in the Model Editor (invoked for the YourSolutionName.Module/Model.DesignedDiffs.xafml file).

Files to Review

Documentation

More Examples