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

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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

License:Other


Languages

Language:C# 74.2%Language:HTML 25.2%Language:Batchfile 0.6%