File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed 
src/MahApps.Metro/MahApps.Metro.Shared/Controls/TimePicker Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -136,6 +136,7 @@ public override void OnApplyTemplate()
136136        { 
137137            _calendar  =  GetTemplateChild ( ElementCalendar )  as  Calendar ; 
138138            base . OnApplyTemplate ( ) ; 
139+             SetDatePartValues ( ) ; 
139140        } 
140141
141142        protected  virtual  void  OnSelectedDateChanged ( TimePickerBaseSelectionChangedEventArgs < DateTime ? >  e ) 
Original file line number Diff line number Diff line change @@ -374,16 +374,17 @@ public override void OnApplyTemplate()
374374            _secondHand  =  GetTemplateChild ( ElementSecondHand )  as  FrameworkElement ; 
375375            _textBox  =  GetTemplateChild ( ElementTextBox )  as  DatePickerTextBox ; 
376376
377- 
378377            SetHandVisibility ( HandVisibility ) ; 
379378            SetPickerVisibility ( PickerVisibility ) ; 
380379
380+             SetHourPartValues ( SelectedTime . GetValueOrDefault ( ) ) ; 
381+             WriteValueToTextBox ( ) ; 
382+ 
381383            SetDefaultTimeOfDayValues ( ) ; 
382384            SubscribeEvents ( ) ; 
383385            ApplyCulture ( ) ; 
384386            ApplyBindings ( ) ; 
385387
386-             WriteValueToTextBox ( ) ; 
387388        } 
388389
389390        protected  virtual  void  ApplyBindings ( ) 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments