Is a DateTime element Read-Only?

Class library usage, coding and language questions.
User avatar
Aracknid
Posts: 388
Joined: Tue Aug 10, 2010 3:23 pm
Location: Toronto, Ontario, Canada

Is a DateTime element Read-Only?

Post by Aracknid » Wed Jun 15, 2011 8:08 pm

I've got a Silverlight DateTime element and I can attach to it without issues. When I read it's value, I get the current selected date. However, I want to set the date. Is this possible or is this control read-only? Do I have to write code to work with all the underlying buttons that represent the individual days?

Thanks,

Aracknid

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Is a DateTime element Read-Only?

Post by Support Team » Thu Jun 16, 2011 1:38 pm

Hi,

If you use the DateTimePicker you can set the text of the ComboBox, but if you use the DateTime calendar there is no change to set the value, because the attributes are read only. We use the UIAutomation framework of Microsoft and this framework return us the value as Read Only property. The only way to set the DateTime of the calendar is to use the button control inside this element.

Regards,
Peter
Ranorex Team