Hi
I tried to set the AutoFillDate Property for a xamDateTimeEditor in my XamDataGrid.
I tried like this:
<Window.Resources>
<Style TargetType="{x:Type igDE:XamDateTimeEditor}"> <Setter Property="AutoFillDate" Value="Year" /> </Style>
</Window.Resources>
But I get : "Invalid PropertyDescriptor Value"
what am I doing wrong?
It looks like the problem is that this property was defined as a CLR property only and not as a DependencyProperty. I have submitted an issue for this and will get a case created for you so you can be notified when this is fixed. In the interim you will need to set this locally on the element instance (in xaml or code).
Thank you for the answer,
how can I set the Value locally. I don't have an element instance. It is a Field in a xamDataGrid where I set the EditorType:
<igDP:Field Name="RB_Date" Label="Datum"> <igDP:Field.Settings> <igDP:FieldSettings EditorType="{x:Type igDE:XamDateTimeEditor}" EditorStyle="{StaticResource DateTimeEditorStyle}" /> </igDP:Field.Settings> </igDP:Field>