Skip to content

DevExpress-Examples/xaf-win-add-custom-button-to-form-using-custom-view-item

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XAF WinForms - Add an Unbound Control (Button) to the Form Layout in an XAF View (with a Fully Custom ViewItem)

This example adds a custom control to a Detail View. See the following help topic for more information: How to Add an Unbound Control (Button) to the Form Layout in an XAF View (with a Fully Custom ViewItem).

custom-button-in-form

Implementation Considerations

This is an advanced customization method that requires coding. Use it when you want to add an existing or custom control to the client area of a Detail View or Dashboard View. This approach allows you to obtain data from the current View object, if necessary. Your control can be unbound or can load data from external sources.

If you want to bind a control to a business class property and add that control to both List View and Detail View, consider the custom Property Editor approach.

This approach does not impose any restrictions on UI Control and XAF View interaction. You can implement custom logic in a ViewController or a custom UI control. ViewItem descendants may implement their own inner logic.

To display standard XAF Actions in a Detail View, use the technique described in the following topic: How to: Include an Action to a Detail View Layout.

Files to Review

Documentation

More Examples

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)

Contributors 7