This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Dear all, i have two questions about styling the DateTimePicker. The first problem i have is if for the time part is 'AM' or 'PM' displayed the DateTimePicker truncates a part of the M and the DisplayElement of 'AM'/'PM' has a border which we don't want to have. The second problem is that i have to disable the control and i would like to change the default used color. And in this case all DisplayElements within the DateTimePicker have a border. How can i change the style to manage these things? Best regards, Martina |
|
|
Hi Martina, Sorry for the delay in replying to this but we have been a bit busy lately! The DateTimePicker can be styled in the usual WPF way. You can create a custom template to override the normal layout and presentation. The default template uses a ProportionalStackPanel but you can replace this with your own layout. There is some specific information in the help file under Help Topics > Styling the Date-Time Picker, and a simple example in the Element sample under DateTimePickerStyling.xaml. If these don't make sense, or if you need more specific guidance around particular display issues, let us know! |
|