Geeks With Blogs


Add to Google

Tim Hibbard CEO for EnGraph software April 2011 Entries
WPF TimeSpinner Control
As I discussed in my last post, we created a TimeSpinner control based on the Extended WPF Toolkit’s ButtonSpinner. Now, the toolkit has a DateTimeUpDown control that will display a date or time and allow the user to click the spinners for each time part, but I needed a little more. I needed the raw text to be editable and I wanted the spinners to just modify the minutes portion. I also wanted to have special parsing based on the number of characters entered. 4 chars:Parse as military time. 3 chars: ......

Posted On Thursday, April 14, 2011 10:16 AM

Smarter DateTime.AddMinutes
Our software will automatically generate pick up and drop off times based on distance of trip, how many other people are on the bus, how long it takes to drop them off, etc. We display these times in our custom TimeSpinner control based on WPF Extended Toolkit’s button spinner. Since the computer is generating the time, they are often not human-friendly. 6:00 AM is a lot easier to remember than 6:03 AM. So we give the users the option to modify these times. Using the spinners, they can adjust the ......

Posted On Tuesday, April 12, 2011 8:26 AM

WPF–Show Dialog with backdrop
Sometimes it handy to force the user’s attention to a specific screen. We can do this with a dialog, but sometimes the user doesn’t know that window is on top. To draw the user’s eye to the window, I like to place a backdrop between the rest of the application and the dialog window. I use the following code to make that happen. 1: public bool? ShowDialogWithBackdrop(Window win) 2: { 3: //create backgroup 4: Window backgroundWindow = new Window(); 5: backgroundWindow.Top = 0; 6: backgroundWindow.Left ......

Posted On Friday, April 8, 2011 9:17 AM

Copyright © Tim Hibbard | Powered by: | Join free