For one of my new apps i had the requirement that an user could select a duration of an event. First i looked how it was done by the Calendar app and i noticed that they give few options for duration, or let you select and end date. In that case you dont fill in a duration. For me that wasn't a possible solution.
I tried out the Time Picker to select a duration. Only one cool feature of the time picker maked it worthless for me. When your in england / VS the time picker also shows AM / PM optio, what suggest it is a point in time and not a duration.
I end up with creating a custom control nd the result looks this way:
Cool features about this control:
- you can assign a minimal and maximal duration
- hides time parts which are not nessary to fill in (if maximum duration if below an hour, only shows the minutes)
- Supports the header property like textbox and other input controls has
You can download the source code, including a demo project here:
- having a fun afternoon with #fluent and #rome ; let see if can make something publishable
- RT @pag3rd: If you'll be at #MSIgnite and want to learn about what's new with #XAML #FluentDesign and the brand new #WinUI library come to…
- RT @kevintgallo: What’s your favorite color? https://t.co/GvhJIb4ItX
- @shanselman @tomasrestrepo @h0x0d @joncaves does it mean @satyanadella holds the mic for you next time at build?
- @BNR De eindstand (aangekomen op bestemming) https://t.co/DXxHPP57iy
- Toch even aan die conditie werken.. Je weet maar nooit @bnr #fiemibo https://t.co/H61vOPrtVi
- RT @donasarkar: Hello #WindowsInsiders we have released 19H1 Build 18242 to Skip Ahead! https://t.co/kuo5Y9jt0i
- @BNR Zines de 2 jaar dat ik bij bnr heb gewerkt 😊 #ikhoorbijbnr
- @JenMsft is there a way to get notfication mirring from android to win desktop without the cortana app (its not available in netherlands)
- @tomverhoeff @bartlannoeye i agree with bart in this.. been seeing enough 'good speakers' just delivering 101 sessions all the time