brianlagunas_cp
bdbd98b09e
PropertyGrid: fixed alignment of grid splitter for expanded properties
15 years ago
brianlagunas_cp
064367f381
PropertyGrid: indented child properties when drilling down the property hierarchy
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
b9566e9e80
merges some changes into 3.5 solution
15 years ago
brianlagunas_cp
c33d9a9fc8
MaskedTextBox: fixed bug when selecting all text and pressing Control key the text would be deleted.
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
19ea540264
InputBase and UpDownBase controls: BREAKING CHANGE - renamed IsEditable to IsReadOnly and implemented accordingly.
15 years ago
brianlagunas_cp
e963e425bf
CollectionEditorDialog: added NewItemTypes property.
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
46631c63d7
MessageBox: fixed typo
15 years ago
brianlagunas_cp
a3ce84952a
ColorPicker: fixed null exception when trying to re-template in Blend
15 years ago
brianlagunas_cp
74f16932d3
ColorPicker: fixed null expcetion when re-templating in Blend
15 years ago
brianlagunas_cp
4e79ecbede
PropertyGrid: made converter public. for some reason I total missed that one.
15 years ago
brianlagunas_cp
4a79ab027a
DateTimePicker: fixed the calendar dropdown initialization.
15 years ago
brianlagunas_cp
5eb9c8e3bb
DateTimePicker: added TimeFormat and TimeFormatString properties to control the formatting of rthe timeUpDown control.
15 years ago
brianlagunas_cp
1b569dc08c
MessageBox: Set the Cancel button IsCancel to true. Now escape will close the messagebox as expected.
15 years ago
brianlagunas_cp
58df15643c
Magnifier: added new FrameType property which allows you to choose between a Circular or Rectangular magnifier.
15 years ago
brianlagunas_cp
57e749ad67
CheckListBox: fixed bug where CheckedItems would be null when setting the items source.
15 years ago
brianlagunas_cp
fca23e1f6d
Numeric Up/Down controls: fixed the foreground color when the controls are disabled.
15 years ago
brianlagunas_cp
1a5060c4cf
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
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
1f2c86021d
ButtonSpinner: removed fix in change set 78704 due to side affects.
15 years ago
brianlagunas_cp
10439780dc
ButtonSpinner: changed foreground color of arrows when control is disabled
15 years ago
brianlagunas_cp
01c639cccd
Fixed issue with numeric updown controls where clicking the button spinners would remove focus from the textbox.
15 years ago
brianlagunas_cp
e94609c094
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
dde61640ae
working on ChildWindow example for the sample application
15 years ago
brianlagunas_cp
7553284ceb
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
d8f5f1f0f1
DateTimeUpDown/DateTimePicker: fixed applying a custom format when the FormatString is defined first in XAML.
15 years ago
brianlagunas_cp
31dc084e34
Numeric up/down controls: fixed issue with Control.Focus().
15 years ago
brianlagunas_cp
acce33e1e1
added Microsoft.Practices.ServiceLocation.dll
15 years ago
brianlagunas_cp
ac082aa42b
incremented to v1.5.0.0
15 years ago
brianlagunas_cp
90605c1fd5
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
f08d4ddb73
MessageBox: fixed issue where it is possible for the button in the click event handler to be null.
15 years ago
brianlagunas_cp
1de41a011a
added Calculator samples to sample application
15 years ago
brianlagunas_cp
31bf9c79cd
added DropDownButton, ButtonSpinner, and SplitButton examples to the Sample application
15 years ago
brianlagunas_cp
77543e30e0
added BusyIndicator samples to the Sample application.
15 years ago
brianlagunas_cp
4c94490c39
WatermarkTextBox, fixed small issue with SelectAllOnGotFocus and updated sample to include this feature.
15 years ago
brianlagunas_cp
b4ad07b61d
added WatermakrTextBox samples to Sample application.
15 years ago
brianlagunas_cp
5567f5637e
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
790d7159f1
merged all controls and bug fixes into the .NET 3.5 solution.
15 years ago
brianlagunas_cp
24ded02642
Wizard: Made WizardPageType.Exterior the default PageType
15 years ago