emartin_cp
a64bb838eb
Rename WPFToolkit.Extended directories for Xceed.Wpf.Toolkit
13 years ago
emartin_cp
f068898687
1.8.0 Release - Various deployment fixes
14 years ago
emartin_cp
0c933c8124
1.8.0 Release
14 years ago
emartin_cp
2edfd42354
1.7.0 Release
14 years ago
Nebuleux_cp
1f0dbeb7e0
Change the license back to Microsoft Public (Ms-PL) in the header of every .cs and .xaml files.
14 years ago
Nebuleux_cp
be1e34b23a
Add a TimelinePanel to the project.
14 years ago
Nebuleux_cp
a5a5359315
Change the namespaces.
14 years ago
Nebuleux_cp
f0775d4061
Add a license description in the header of every .cs and .xaml files.
14 years ago
Nebuleux_cp
761e5f23b0
Remove compilation warnings.
14 years ago
brianlagunas_cp
1d92984cfe
Propertygrid: added SelectedPropertyItemChanged event. It is executed everytime a new property item is selected in the Propertygrid.
14 years ago
brianlagunas_cp
dc82c618c5
PropertyGrid: added PropertyValueChanged event
14 years ago
brianlagunas_cp
63e65e47b9
PropertyGrid: added ShowSortOptions and ShowSearchBox properties that will allow you to control the visibility of the Categorize/Alpha sort optiosna dnt he search text box.
14 years ago
brianlagunas_cp
3f9a4d19f1
PropertyGrid: implemented PropertyOrderAttribute. You can now apply the PropertyOrder attirbute to a property to control the order in which the properties are sorted. The attribute is only honored while in the Categorized view and ignored when sorted alphabetically
14 years ago
brianlagunas_cp
f3a0d20ebd
PropertyGrid: added feature that allows you to specify a display name when using the IItemsSource attribute.
15 years ago
brianlagunas_cp
3f1d3ad4aa
PropertyGrid: fixed issue with ExpandableProperty past 1 level
15 years ago
brianlagunas_cp
f271a3c805
PropertyGrid: fixed possible null reference exception nwhen setting the Filter
15 years ago
brianlagunas_cp
29ac63a65d
PropertyGrid: added FilterWatermark property which allows you to customize the watermark of the Filter textbox.
15 years ago
brianlagunas_cp
fad356b88d
PropertyGrid; fixed null exception when clicking the categorize and alphabetize buttons when the SelectedObject is null.
15 years ago
brianlagunas_cp
eb88719af7
PropertyGrid: ExpandableObject editor is now read only.
15 years ago
brianlagunas_cp
107287c251
PropertyGrid: fixed issue wtih ExpandableObject not expanding when private setter is present.
15 years ago
brianlagunas_cp
ad8ed27f51
PropertyGrid: fixed issue where an ExpandableObject would only show properties of a base class or interface.
15 years ago
brianlagunas_cp
f3aad8decc
added new CheckComboBox control.
15 years ago
brianlagunas_cp
af4c60208d
Moved PropertyGrid changes into .NET 3.5 solution
15 years ago
brianlagunas_cp
3b3e10da10
PropertyGrid: Added PropertyGrid examples to the Samples application.
15 years ago
brianlagunas_cp
bafa2e2702
PropertyGrid: removed IEditorDefinition interface.
15 years ago
brianlagunas_cp
f27e96d16e
PropertyGrid: no longer support the ExpandableObjectConverter syntax for defining a complex property. I have added a new attribute called ExpandableObjectAttribute.
The syntax is as follows:
public class Person
{
[Description("First Name")]
public string FirstName { get; set; }
[Description("Last Name")]
public string LastName { get; set; }
[ExpandableObject]
public Person Spouse { get; set; }
}
15 years ago
brianlagunas_cp
50f76f0649
PropertyGrid: added new property called AutoGenerateProperties. When true it will autogenerate all properties for an object. Wehn set to false if till not generate any properties, but instead you supply the property to show be defining PropertyDefinitions. here is an example:
<extToolkit:PropertyGrid AutoGenerateProperties="False">
<extToolkit:PropertyGrid.PropertyDefinitions>
<extToolkit:PropertyDefinition Name="FirstName" />
<extToolkit:PropertyDefinition Name="Age" />
</extToolkit:PropertyGrid.PropertyDefinitions>
</extToolkit:PropertyGrid>
This will only show the FirstName and Age properties of the bound object.
15 years ago
brianlagunas_cp
bdbd98b09e
PropertyGrid: fixed alignment of grid splitter for expanded properties
15 years ago
brianlagunas_cp
093c0485c2
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
f39523515d
PropertyGrid: Deleted custom TypeEditorAttribute for defining editors and instead use the already common EditorAttribute provided my the .NET framework. Editors MUST implement the ITypeEditor interface. So now to declare custom editors you define them as follows:
private TimeSpan _timeSpan;
[Editor(typeof(MyCustomEditor), typeof(MyCustomEditor))]
public TimeSpan TimeSpan
{
get { return _timeSpan; }
set { _timeSpan = value; }
}
public class MyCustomEditor : ITypeEditor
{
public FrameworkElement ResolveEditor(PropertyItem propertyItem)
{
TextBox editor = new TextBox();
Binding binding = new Binding("Value"); //bind to the Value property of the PropertyItem instance
binding.Source = propertyItem;
binding.Mode = propertyItem.IsWriteable ? BindingMode.TwoWay : BindingMode.OneWay;
BindingOperations.SetBinding(editor, TextBox.TextProperty, binding);
return editor;
}
}
15 years ago
brianlagunas_cp
00ca8aaa08
PropertyGrid: fixed the alphabetical sorting. Got to watch those "magic strings" when renaming.
15 years ago
brianlagunas_cp
6e14016bba
PropertyGridItem: removed the feature of giving the editor focus when selecting a property. It was causing too many issues with custom editors
15 years ago
brianlagunas_cp
34911b8c1b
PropertyGrid: removed code that would gurantee that a editor will receiev focus, and instead the PropertyGrid does the best it can to give focus to the editor when a property is selected. This fixes problems when creating custom editors that depend on the MouseDown event
15 years ago
brianlagunas_cp
96a65ec051
PropertyGrid: added ability to define editors with a simple attribute called TypeEditorAttirbute. You can use a default editor or create a custom editor as follows:
public class MyCustomEditor : ITypeEditor
{
public FrameworkElement ResolveEditor(PropertyItem propertyItem)
{
TextBox editor = new TextBox();
Binding binding = new Binding("Value"); //bind to the Value property of the PropertyItem instance
binding.Source = propertyItem;
binding.Mode = propertyItem.IsWriteable ? BindingMode.TwoWay : BindingMode.OneWay;
BindingOperations.SetBinding(editor, TextBox.TextProperty, binding);
return editor;
}
}
Then attribute the property to use the editor on:
private TimeSpan _timeSpan;
[TypeEditor(typeof(MyCustomEditor))]
public TimeSpan TimeSpan
{
get { return _timeSpan; }
set { _timeSpan = value; }
}
15 years ago
brianlagunas_cp
b3152155b1
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
e34f51e8b1
PropertyGrid: fixed bug when the SelectedObject is set to null the information panel retains the last selected property info.
15 years ago
brianlagunas_cp
2d7ae5a473
PropertyGrid: enabled the ability to define an EditorDefinition by property name as well. You can now have an EditorDefinition for a specific Type as well as for specific property names as well.
This example will provide a TextBox editor for any property of type DateTime as well as any property with the defined property names:
<extToolkit:PropertyGrid>
<extToolkit:PropertyGrid.EditorDefinitions>
<extToolkit:EditorDefinition TargetType="{x:Type sys:DateTime}">
<extToolkit:EditorDefinition.Properties>
<sys:String>FirstName</sys:String>
<sys:String>LastName</sys:String>
</extToolkit:EditorDefinition.Properties>
<extToolkit:EditorDefinition.EditorTemplate>
<DataTemplate>
<TextBox Text="{Binding Value}" />
</DataTemplate>
</extToolkit:EditorDefinition.EditorTemplate>
</extToolkit:EditorDefinition>
</extToolkit:PropertyGrid.EditorDefinitions>
</extToolkit:PropertyGrid>
You can also target just a Type or just property names.
15 years ago
brianlagunas_cp
3fbc48411a
PropertyGrid: added TimeSpan editor
15 years ago
brianlagunas_cp
2523b237d2
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
1f6dd01716
PropertyGrid: implemented CustomTypeEditors and also did some refactoring.
15 years ago
brianlagunas_cp
4e79ecbede
PropertyGrid: made converter public. for some reason I total missed that one.
15 years ago
brianlagunas_cp
59246fd23c
PropertyGrid: added new AdvanceOptionsMenu property that allows you to specify a custom ContentMenu for the AdvanceOptions button on a property item.
15 years ago
brianlagunas_cp
e6d88f30da
PropertyGrid: added ShowAdvancedOptions property.
15 years ago
brianlagunas_cp
6feaea84aa
various improvements. slightly changed ColorPicker style to match the rest of the dropdown controls.
15 years ago
brianlagunas_cp
cfcb570f14
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
8aaac023af
PropertyGrid: finished CollectionEditor control. This editor will only work for collections that implement the IList interface.
15 years ago
brianlagunas_cp
a17f24e2bb
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
7e8fd94c47
PropertyGrid: added Update() method which will allow you to update all property values in the PropertyGrid with the data from the SelectedObject. This is helpful when your SelectedObject does not implement the INotifyPropertyChanged interface.
15 years ago
brianlagunas_cp
dac6d6469e
PropertyGrid: working on collection editor
15 years ago
brianlagunas_cp
d1c4040853
ProperytGrid: Filtering now filters off the DisplayName
15 years ago