Quantcast
Channel: wpftoolkit Wiki Rss Feed
Viewing all articles
Browse latest Browse all 892

New Comment on "PropertyGrid"

$
0
0
Hi I actualy have to complayne about some thing. I am making a kind of Form Designer so I developed a class implementing the System.ComponentModel.ICustomTypeDescriptor overloading the GetProperties Function but it isn't been called maybe you propertygrid goes to deep. I actualy used a windows form host to check if i am making a mistake on this one but the windows.forms.propertygrid shows the editable propertys here is some code to look at: Public Class cPropertyView Implements System.ComponentModel.ICustomTypeDescriptor Private _PropertyDictionary As Object Public Property PropertyDictionary() As Object Get Return _PropertyDictionary End Get Set(ByVal value As Object) _PropertyDictionary = value End Set End Property .... Public Function GetProperties(attributes() As Attribute) As ComponentModel.PropertyDescriptorCollection Implements ComponentModel.ICustomTypeDescriptor.GetProperties Dim NewPropertyList As New System.ComponentModel.PropertyDescriptorCollection({}) Dim NewProp As New SelfProperty("NewProp", attributes) NewProp.PropType = GetType(Integer) NewProp.Value = 12 NewProp.DisName = "Number" NewProp.Discript = "a Number of Type Integer." NewPropertyList.Add(NewProp) Return NewPropertyList End Function End Class Public Class SelfProperty Inherits System.ComponentModel.PropertyDescriptor ....

Viewing all articles
Browse latest Browse all 892

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>