I would like to remove the UseByListViewCriteriaObjectCreating functionality from my project. Is there a global way to remove this?
To remove the UseByListViewCriteriaObjectCreating functionality from my project, you need deactivate ListViewCriteriaObjectCreatingController.
Feel free to contact us if you have any questions.
Please can you let me know how to deactivate the controller please. I tried to deactivate it but there isn't any option to do so.
Sorry for the delay with the answer.
To disable ListViewCriteriaObjectCreatingController, inherit From a Controller ListViewCriteriaObjectCreatingControllerWin. In constructor set active property to false.
public partial class CustomListViewCriteriaObjectCreatingControllerWin : ListViewCriteriaObjectCreatingControllerWin
this.Active["CustomController"] = false;
}protected override void OnFrameAssigned()
Feel free to contact us if you need further assistance or have additional questions.
I still can't get it to work.
I created a ViewController in the Project.Module called "CustomListViewCriteriaObjectCreatingControllerWin" as shown in code below.
Partial Public Class CustomListViewCriteriaObjectCreatingControllerWin
Protected Overrides Sub OnActivated()
Im new to the XAF Framework. I do apologize for the inconvenience.
I want to draw your attention to the fact that in the override method OnFrameAssigned, you do not need to call the base.
Yeah I tried with calling base and without and it still didn't work.
Сan You provide a demo project?
Its all sorted out thanks.