Quantcast
Channel: Extended WPF Toolkit™ Community Edition
Viewing all articles
Browse latest Browse all 4964

Commented Unassigned: TimeSpan Displays as Time (AM/PM) in PropertyGrid [20039]

$
0
0
I'm using the latest Toolkit (downloaded today). When setting the SelectedObject to an object containing multiple TimeSpan's, the value is being displayed as a time of day.
Example
TimeSpan value = 00:00:00 is displayed as 12:00:00 AM
TimeSpan value = 00:05:00 is displayed as 12:05:00 AM

Is this the default display for a TimeSpan? If not, why do you think this is occurring?
Comments: ** Comment from web user: BoucherS **

The PropertyGrid uses a TimeSpanEditor when a property of type TimeSpan needs to be displayed. Currently, the TimeSpanEditor sets its "Editor.Format" to "DateTimeFormat.LongTime" which has this visual :
12:05:00 AM

You can modify the TimeSpanEditor or use your own to display another format.


Viewing all articles
Browse latest Browse all 4964

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>