A
alexcsharp2
Hello.
I created a designer in c#. Everything is working excepted the
property grid.
I want to show only the properties I added. So I created a class which
inherits of a button. And I added properties.
But I want to filter the base properties. So to do this, I inherit my
class from ICustomTypeDescriptor.
In the function getProperties, I filter. And I can show only my
properties. But on my host designer, the text of my button and the
position disappeared.
I mean when I add my custom button without filtering. I see it normal.
And if I filter, the text and position are removed. So it appears in
the left corner and I can't move it.
How can I fix the problem?
Thank you.
I created a designer in c#. Everything is working excepted the
property grid.
I want to show only the properties I added. So I created a class which
inherits of a button. And I added properties.
But I want to filter the base properties. So to do this, I inherit my
class from ICustomTypeDescriptor.
In the function getProperties, I filter. And I can show only my
properties. But on my host designer, the text of my button and the
position disappeared.
I mean when I add my custom button without filtering. I see it normal.
And if I filter, the text and position are removed. So it appears in
the left corner and I can't move it.
How can I fix the problem?
Thank you.