We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

using a list of properties instead of object

Thread ID:





132767 Sep 19,2017 06:55 PM Sep 20,2017 06:31 AM WPF 1
Tags: PropertyGrid
Eric Gurney
Asked On September 19, 2017 06:55 PM

Is there anyway to use a list of properties instead of an object to set the properties.

I'm looking for something like 

List<PropertyInformation> Properties

class PropertyInformation 
     public string Category {get;set;}
     public string Description {get;set;}
     public string DisplayName {get;set;}
     public object Value {get;set;}

so I would have a property like new PropertyInformation { Category = "A", Description = "B", DisplayName ="C", Value =false};

instead of 

class Name 
     public bool RandomBool {get;set;}


Priyanga Balasubramaniam [Syncfusion]
Replied On September 20, 2017 06:31 AM

Hi Eric,

Thank you for using Syncfusion products.

From your update we understood that you try to change the Attribute value at runtime using properties. We could not set Attribute values for properties at run time while define the properties. Due to this reason in current implementation of our PropertyGrid does not provide support to load properties from the collection.

Priyanga B


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.