Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

How to use IPropertyControlFactory?

Vote:
 

Hey everybody here.

I am stuck with an old custom property that we will later remove so I would not like to update it to DOJO, just do as it worked in Epi 7, with this ugly button.

The problem is that with 11, I need to change to use IPropertyControlFactory and I can not find anywhere or any example on how to use that.

#187502
Jan 24, 2018 16:36
Vote:
 

Here is an example on how to do it from an IInitializableModule

 public void Initialize(InitializationEngine context)
 {
                var propertyControlFactory = context.Locate.Advanced.GetInstance<IPropertyControlFactory>();
                propertyControlFactory.TryRegister<MyPropertyData, MyPropertyControl>();
}
#187504
Jan 24, 2018 17:39
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.