brianlagunas_cp
80f96bd330
PropertyGrid: fixed alignment of grid splitter for expanded properties
15 years ago
brianlagunas_cp
33219ef486
PropertyGrid: indented child properties when drilling down the property hierarchy
15 years ago
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
fb6e50dbe7
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
1b407ea505
PropertyGrid: fixed the alphabetical sorting. Got to watch those "magic strings" when renaming.
15 years ago
brianlagunas_cp
af16933e4e
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
cd7f1f7d98
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
4246a61a21
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
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
0642068fc6
merges some changes into 3.5 solution
15 years ago
brianlagunas_cp
96ce95d31d
MaskedTextBox: fixed bug when selecting all text and pressing Control key the text would be deleted.
15 years ago
brianlagunas_cp
61618ed930
PropertyGrid: fixed bug when the SelectedObject is set to null the information panel retains the last selected property info.
15 years ago
brianlagunas_cp
6797d89482
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
1b12e7dafa
InputBase and UpDownBase controls: BREAKING CHANGE - renamed IsEditable to IsReadOnly and implemented accordingly.
15 years ago
brianlagunas_cp
e448ac366d
CollectionEditorDialog: added NewItemTypes property.
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
828cd6098e
MessageBox: fixed typo
15 years ago
brianlagunas_cp
809dd84b6b
ColorPicker: fixed null exception when trying to re-template in Blend
15 years ago
brianlagunas_cp
b43538dc06
ColorPicker: fixed null expcetion when re-templating in Blend
15 years ago
brianlagunas_cp
d975a9ff12
PropertyGrid: made converter public. for some reason I total missed that one.
15 years ago
brianlagunas_cp
bee532bb46
DateTimePicker: fixed the calendar dropdown initialization.
15 years ago
brianlagunas_cp
a987e0f6e2
DateTimePicker: added TimeFormat and TimeFormatString properties to control the formatting of rthe timeUpDown control.
15 years ago
brianlagunas_cp
9e6b9836e9
MessageBox: Set the Cancel button IsCancel to true. Now escape will close the messagebox as expected.
15 years ago
brianlagunas_cp
1dcfb56e1b
Magnifier: added new FrameType property which allows you to choose between a Circular or Rectangular magnifier.
15 years ago
brianlagunas_cp
849c3894e7
CheckListBox: fixed bug where CheckedItems would be null when setting the items source.
15 years ago
brianlagunas_cp
dce25a27a0
Numeric Up/Down controls: fixed the foreground color when the controls are disabled.
15 years ago
brianlagunas_cp
3911d3bf6b
DateTimePicker: if the Calendar is open and has focus the Up/Down keys would not navigate the calendar as expected. This has been fixed.
15 years ago
brianlagunas_cp
8c1d87db6c
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
1114747461
ButtonSpinner: removed fix in change set 78704 due to side affects.
15 years ago
brianlagunas_cp
600181eda9
ButtonSpinner: changed foreground color of arrows when control is disabled
15 years ago
brianlagunas_cp
04ce71f853
Fixed issue with numeric updown controls where clicking the button spinners would remove focus from the textbox.
15 years ago
brianlagunas_cp
db1c1d3c11
MultilineTextEditor: fixed exception when creating more than one instance. This was due to the default image being set as the content. Applied the x:Shared attribute to resolve.
15 years ago
brianlagunas_cp
cf04b9e76f
working on ChildWindow example for the sample application
15 years ago
brianlagunas_cp
59b8320a50
MaskedTextBox: fixed bug that was introduced with new "typing while all text selected overwrites value" feature, where the Tab key would cause the text to be deleted when all text was selected.
15 years ago
brianlagunas_cp
b7839751ea
DateTimeUpDown/DateTimePicker: fixed applying a custom format when the FormatString is defined first in XAML.
15 years ago
brianlagunas_cp
c9672dfbe0
Numeric up/down controls: fixed issue with Control.Focus().
15 years ago
brianlagunas_cp
aa8be2e79f
added Microsoft.Practices.ServiceLocation.dll
15 years ago
brianlagunas_cp
e657e49475
Branched from $/wpftoolkit/Main/Source
15 years ago
brianlagunas_cp
97177d925a
incremented to v1.5.0.0
15 years ago
brianlagunas_cp
ce253a4545
MaskedTextBox: implemented feature when all text is selected and user types a new value, all text is deleted and the new value is entered in its place.
15 years ago
brianlagunas_cp
11a71789d4
MessageBox: fixed issue where it is possible for the button in the click event handler to be null.
15 years ago
brianlagunas_cp
d438d6dc6a
added Calculator samples to sample application
15 years ago
brianlagunas_cp
9d80509ccd
added DropDownButton, ButtonSpinner, and SplitButton examples to the Sample application
15 years ago
brianlagunas_cp
262d257abc
added BusyIndicator samples to the Sample application.
15 years ago
brianlagunas_cp
feeae4b762
WatermarkTextBox, fixed small issue with SelectAllOnGotFocus and updated sample to include this feature.
15 years ago
brianlagunas_cp
0510faf291
added WatermakrTextBox samples to Sample application.
15 years ago
brianlagunas_cp
2088a48540
finished the base architecture for the sample application. You will be able to view both the XAML and the C# code in tabs while running the sample application. Now I just need to start adding some samples.
15 years ago
brianlagunas_cp
246e7d6958
merged all controls and bug fixes into the .NET 3.5 solution.
15 years ago