PropertyGrid Control for Winforms
Good day. There appears to be a pretty strong propertygrid control in syncfusion's wpf controls collection. This control seems to have a great deal more functionality than the Microsoft propertygrid. However, this control is apparently not included for Winforms.
Is there a way to utilize this wpf control in a winform application? If not, I highly recommend a winforms version of this control be developed as it would be highly beneficial for everyone who is actively building or maintaining projectsin winforms.
SIGN IN To post a reply.
5 Replies
VI
Vinothini
Syncfusion Team
October 25, 2017 08:41 AM UTC
Hi Travis,
At present there is no PropertyGrid control in Winforms, we have already added it in our feature control list and it will be available in any of our upcoming releases. In the meantime, you can host the WPF PropertyGrid in Winforms Application using the Element Host. We have prepared sample for the same and it is available in the below location.
Regards,
Vinothini.R
TC
Travis Chambers
October 25, 2017 02:06 PM UTC
Thank you! Your sample works well for the most part. However, some of the properties do not seem to work. The color properties do not have a color drop-down and changing the text does not update the color of the selected control. Also, changing the location and size doesn't seem to update the selected object either. Is there something I am missing?
VI
Vinothini
Syncfusion Team
October 26, 2017 12:48 PM UTC
Hi Travis,
Thank you for your update.
The Button properties like Size, Location and Color related properties in Windows forms have different data type in compared with WPF. So those values in the Property grid is returned as TextBox type. Now we have used Custom editor for back color property and ColorPickerPalette is shown for the BackColor property in PropertyGrid. You can use the same for Size, Location property and the sample for BackColor is available in the below location.
Regards,
Vinothini.R
TC
Travis Chambers
October 26, 2017 01:20 PM UTC
Thank you for the updated sample. The color editor looks great in the propertygrid, however, it still doesn't not actually change the color property of the selectedobject. How do I connect the color editors to the respective color properties of the selectedobject?
VI
Vinothini
Syncfusion Team
October 27, 2017 08:40 AM UTC
Hi Travis,
Thank you for your update.
We can update the value of the custom color editor picked color to the color property of the SelectedObject, by using the ColorPickerPalette ColorChanged event. You can find the modified sample below.
Regards,
Vinothini.R
SIGN IN To post a reply.
- 5 Replies
- 2 Participants
-
TC Travis Chambers
- Oct 24, 2017 11:45 AM UTC
- Oct 27, 2017 08:40 AM UTC