Skip to content

DevExpress-Examples/xaf-win-custom-button-in-lookup-property-editor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XAF WinForms - How to add a custom Edit button to LookupPropertyEditor

This example creates a LookupPropertyEditor descendant with a custom Edit button. image

Implementation Details

Follow the steps below to add a custom button to LookupPropertyEditor:

  1. Create a LookupPropertyEditor descendant (MyLookupPropertyEditor.cs).

  2. Access the RepositoryItemLookupEdit and use its settings to customize LookupPropertyEditor:

    • Add a custom button to the Buttons collection.
    • Subscribe to the ButtonClick event and implement custom logic in the event handler.
  3. Assign the LookupPropertyEditor descendant to a business object's PropertyEditorType in the Model Editor (Model.xafml).

Files to Review

Documentation

Does this example address your development requirements/objectives?

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

About

Create a LookupPropertyEditor descendant with a custom button.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 5