brianlagunas_cp
116ad1ec87
PropertyGrid: Implemented support for complex properties. You can now drill down into a hierarchy of an object's properties. I an not sure if I will create my own attribute or use the following syntax.
[TypeConverter(typeof(ExpandableObjectConverter))]
public Person Admin
{
get { return _admin; }
set { _admin = value; }
}
For now it works with the above syntax.
15 years ago
brianlagunas_cp
20435ddf03
PropertyGrid: Added new attribute called ItemsSourceAttribute which allows you to use an attribute to specify a custom items source for a ComboBox editor. To use simply create a custom class the implements the IItemsSource interface:
public class ColorSource : IItemsSource
{
public IList<object> GetValues()
{
return new List<object>() { Colors.Blue, Colors.Gray, Colors.Green };
}
}
Then decorate your property with the ItemsSource attirbute and specify the Type of source to use:
private Color _color = Colors.Green;
[ItemsSource(typeof(ColorSource))]
public Color Color
{
get { return _color; }
set { _color = value; }
}
When the PropertyGrid loads, the editor for the Color property will be a ComboBox with an ItemsSource of ColorSource.GetValues().
15 years ago
brianlagunas_cp
235f46b99c
PropertyGrid: added TimeSpan editor
15 years ago
brianlagunas_cp
bb2e786640
PropertyGrid BREAKING CHANGES - renamed CustomTypeEditors to EditorDefinitions. Added ability to add custom editors by declaring a DataTemplate. You can target a Type or a list of PropertyNames.
Example:
<extToolkit:PropertyGrid>
<extToolkit:PropertyGrid.EditorDefinitions>
<extToolkit:EditorDefinition TargetType="{x:Type sys:DateTime}">
<extToolkit:EditorDefinition.EditorTemplate>
<DataTemplate>
<extToolkit:DateTimeUpDown Format="ShortDate" Value="{Binding Value}" />
</DataTemplate>
</extToolkit:EditorDefinition.EditorTemplate>
</extToolkit:EditorDefinition>
</extToolkit:PropertyGrid.EditorDefinitions>
</extToolkit:PropertyGrid>
15 years ago
brianlagunas_cp
48b1969858
PropertyGrid: implemented CustomTypeEditors and also did some refactoring.
15 years ago
brianlagunas_cp
9ab58c5d44
various improvements. slightly changed ColorPicker style to match the rest of the dropdown controls.
15 years ago
brianlagunas_cp
58e14addb7
New PrimitiveTypeCollectionEditor added. It is used for editing IList<PrimitiveType> such as Int and String. PropertyGrid now uses this editor for editing primitive colleciton types.
15 years ago
brianlagunas_cp
25ca91845c
PropertyGrid: finished CollectionEditor control. This editor will only work for collections that implement the IList interface.
15 years ago
brianlagunas_cp
c8b62817b0
PropertyGrid: working on Collection editor. This editor will only be able to add/remove items from a collection of IList.
15 years ago
brianlagunas_cp
5dcee07ab1
PropertyGrid: working on collection editor
15 years ago
brianlagunas_cp
081c6fa8c5
PropertyGrid: added color editor.
15 years ago
brianlagunas_cp
a9e0e63dd8
PropertyGrid EnumComboBoxEditor: removed values with Browsable attribute
16 years ago
brianlagunas_cp
1f0df02a40
refactored new numeric editors and added the editors to the PropertyGrid control. Now time to start ripping out the old NumericUpDown control.
16 years ago
brianlagunas_cp
4a64011c1b
checked in initial IntegerUpDown control. Not ready for use, just getting it in the code base.
16 years ago
brianlagunas_cp
89fcc42bd2
Added Watermark and WatermarkTemplate to all controls derived from InputBase.
16 years ago
brianlagunas_cp
895d6d0156
Merged all current 4.0 changes into the 3.5 solution. Didn't fully test all controls, but they all compile and seem to work. Not sure how much longer I will support 3.5 since it is so time consuming and a pain to do it.
16 years ago
brianlagunas_cp
7a4e6a9ba1
PropertyGrid: refactored editors
16 years ago
brianlagunas_cp
4f619762cc
PropertyGrid: minor fixes, implemented TextBlockEditor for readonly properties.
16 years ago
brianlagunas_cp
0f96db0328
PropertyGrid: implemented DateTimeUpDown type editor. Working on property binding options menu.
16 years ago
brianlagunas_cp
1d8377f536
PropertyGrid: FontComboBoxEditor implemented all fonts.
16 years ago
brianlagunas_cp
f4610a2cb0
PropertyGrid: added NumericUpDown type editor for double and int.
16 years ago
brianlagunas_cp
238ec07afc
PropertyGrid: custom type editors can now target specific properties or a particular type.
16 years ago
brianlagunas_cp
da023ede24
PropertyGrid: Re-architected editors. This alllows you to create and provide custom editors.
16 years ago