c# - wpf dynamic object explorer -


i new wpf , have searched while following , came noting (not notion how start writing it):

i need build gui environment (wpf on c#) support instantiation of classes- meaning want ability design new classes (not in gui), , have gui automatically (dynamically) expose constructors (will let me build instance of class) , expose of properties manipulation - object explorer/ resource manager if will..

the classes decoupled gui- need gui able create instances of them on demand- maybe real life example serve me better: programmer writes new class:

public class person { #region members string _name; #endregion

    #region properties     /// <summary>     /// artist name.     /// </summary>     public string name     {         { return _name; }         set { _name = value; }     }      #endregion     } 

i want gui support creating instances of person , viewing properties (name) without modifying gui code. meant properties instead of fields correct it

any tips, code examples or design idea on how approach problem appreciated.

thanks, mosh.

try searching microsoft prism http://msdn.microsoft.com/en-us/library/gg406140.aspx there microsoft's patterns , practices creating decoupled wpf style application. 1 example of way create wpf application.

using c#, never expose fields public - these should @ least wrapped in properties.

if want able set properties on class using ui, suggest @ property grid. wpf doesn't have 1 inbuilt (at least far know - not without hacking wf in .net 4.0) can download free 1 codeplex xceed (http://wpftoolkit.codeplex.com/) , there 1 available .net 3.5 if dig through available files. use, decorate properties want manipulatable same attributes use winforms property grid control - plenty of documentation available search for.

i don't understand design objective - (possibly because -you new wpf) - trying design ui elements or classes using custom ui? - maybe people able if provided bit more specific , concise information?


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -