By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,215 Members | 1,920 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,215 IT Pros & Developers. It's quick & easy.

Custom property editor erase all control properties

P: n/a
Hi,

I have a custom control in which i have a collection property named
"Columns".

this collection property add/remove column objects.
in my Column class i have a property named Alignment which use a custom
property editor.

when this property editor is not linked to this property,

My property grid displays all properties of my Column object.
When my custom UIeditor is linked via
[Editor(typeof(AlignmentDropDownEditor), typeof(UITypeEditor))] all
properties of my Column object are hidden (property grid is empty of not
only property value, but also categories and property names...

where could be the mistake ?
Could it come from property converter ?
this property is in fact a class which consists of 2 public properties :
Alignment -Vertical
Alignment -Horizontal

for information, my UIEditor is a dropdown UIEditor.

thanks a lot,

RAF.
Oct 20 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Ok, i found the problem... :-)

but while my custom UIEditor is based on a UserControl of 66 x 66
pixels, it is displayed by property editor like completly reduce and
only on the left half of the "form" of dropdown window.

How is it possible ?

thx.

RAF.
R.A.F. wrote:
Hi,

I have a custom control in which i have a collection property named
"Columns".

this collection property add/remove column objects.
in my Column class i have a property named Alignment which use a custom
property editor.

when this property editor is not linked to this property,

My property grid displays all properties of my Column object.
When my custom UIeditor is linked via
[Editor(typeof(AlignmentDropDownEditor), typeof(UITypeEditor))] all
properties of my Column object are hidden (property grid is empty of not
only property value, but also categories and property names...

where could be the mistake ?
Could it come from property converter ?
this property is in fact a class which consists of 2 public properties :
Alignment -Vertical
Alignment -Horizontal

for information, my UIEditor is a dropdown UIEditor.

thanks a lot,

RAF.
Oct 20 '07 #2

P: n/a
RAF,

The control is going to be sized by the property grid, not by you. You
have to take into account the size that you are given, and adjust your
control accordingly. If this doesn't work for you, then you would be better
off using a modal dialog.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"R.A.F." <no*****@nospam.comwrote in message
news:O1**************@TK2MSFTNGP06.phx.gbl...
Ok, i found the problem... :-)

but while my custom UIEditor is based on a UserControl of 66 x 66 pixels,
it is displayed by property editor like completly reduce and only on the
left half of the "form" of dropdown window.

How is it possible ?

thx.

RAF.
R.A.F. wrote:
>Hi,

I have a custom control in which i have a collection property named
"Columns".

this collection property add/remove column objects.
in my Column class i have a property named Alignment which use a custom
property editor.

when this property editor is not linked to this property,

My property grid displays all properties of my Column object.
When my custom UIeditor is linked via
[Editor(typeof(AlignmentDropDownEditor), typeof(UITypeEditor))] all
properties of my Column object are hidden (property grid is empty of not
only property value, but also categories and property names...

where could be the mistake ?
Could it come from property converter ?
this property is in fact a class which consists of 2 public properties :
Alignment -Vertical
Alignment -Horizontal

for information, my UIEditor is a dropdown UIEditor.

thanks a lot,

RAF.
Oct 20 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.