c# - PropertyGrid GenericList with GenericItems -
Is there a way to display and edit values in the property grid (and its collection editor) of an object, which Abstract general class? I do not display properties like this: "IFilter'1" or "BaseFilter'1" where IFilter is an interface, and the base filter is an abstract class.
All objects included in this list:
list & lt; Iphilter & lt; Bool & gt; & Gt; _activeFilter = New list & lt; Iphilter & lt; Bool & gt; & Gt; ();
An abstract class implementing IFilter is:
Public abstract class FilterBase & lt; T & gt; : IFilter & lt; T & gt; {...}
and some special implementation of FilterBase
public class SimpleBool: FilterBase & lt; Bool & gt; {Public Bowl BowlView {Received; Set; } Secure Override Bull Process (Bull Input) {Return Input & amp; Amp; BoolValue; }}
When I add this kind of "simple force" class to the above defined list, the property will not display any of the grid properties. But when I define a generic list with a non-normal type, then it all looks correct.
Is there any way to get this work done? I tried to add some TypeConverter and a self-archive editor. It is obvious that without destiny = (
I have solved it. But its weird .. Just a few assets Add intangible class "FilterBase", everything.
Comments
Post a Comment