Having trouble using the Actipro TimeSpanEditBox as a propertyEditor.
The editor is displayed with the correct format, but the value is always 0:00:00:00.
Im sure its something obvious but I cant spot it. If I remove the editor template, it all works correctly using the default editor.
I followed one of the examples to get this far, heres the code.
<propgrid:PropertyGrid.PropertyEditors>
<propgrid:PropertyEditor PropertyName="TimeFromShowStart">
<propgrid:PropertyEditor.ValueTemplate>
<DataTemplate>
<editors:TimeSpanEditBox Format="h:mm:ss.ff" />
</DataTemplate>
</propgrid:PropertyEditor.ValueTemplate>
</propgrid:PropertyEditor>
</propgrid:PropertyGrid.PropertyEditors>
private TimeSpan _TimeFromShowStart;
[DisplayName("Time From Start")]
[Category("Timing")]
[Description("Time from the start of the show this command executes. Timing accurate to 1/100th of a second. Format HH:MM:SS.SS")]
//[TypeConverter(typeof(TimeSpanFormatConverter))]
//[Editor(typeof(StringPropertyEditor), typeof(PropertyEditor))]
[Browsable(true)]
public TimeSpan TimeFromShowStart
{
get { return _TimeFromShowStart; }
set
{
if (_TimeFromShowStart == value)
return;
DefaultChangeFactory.Current.OnChanging(this, nameof(TimeFromShowStart), _TimeFromShowStart, value, "TimeFromShowStart Changed");
var oldval = _TimeFromShowStart;
_TimeFromShowStart = value;
RaisePropertyChanged(() => TimeFromShowStart, oldval, value, true);
}
}
Btw, the search on the web page for the forums always returns 0 results.