c# - Nested property for user control -


I have created user controls and have define all the properties. I was able to access / modify the property in design time. Here I need to know how to give nested properties in the same control.

For example, consider the default property "font", which has sub-properties such as "bold", "italic", "name" and so on. , I need nested properties in my custom control.

Enter image details here

In fact, This nested property is required for user control in the application.

Thanks in advance.

Try changing all properties to dependency properties, for example:

  Public reliance dependent textproperty = dependency. Registration ("text", type (string), typef (choice)); Public string text {get {return (string) GetValue (TextProperty); } Set {set value (textproperty, value); }} Public Fixed Dependency Option Choice4Property = DependencyProperty.Register ("Choice 4", Type (Choice), Typef (Micro Control)); Public Choice Choice 4 {Return (G) Gate Valley (Choice 4 Property); } Set {Set Value (Choice 4 property, value); }}    

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -