We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

SfTimePicker value at codebehind

Thread ID:

Created:

Updated:

Platform:

Replies:

131900 Aug 2,2017 06:06 AM Aug 4,2017 12:49 AM WPF 3
loading
Tags: SfTimePicker
josep
Asked On August 2, 2017 06:06 AM

Please can you provide an example about how to set time value to SfTimePicker at codebehind?

Cheers

Vijayalakshmi Roopkumar [Syncfusion]
Replied On August 3, 2017 02:08 AM

Hi Josep

Thank you for contacting Syncfusion Support.

This reported requirement in SfTimePicker can be achieved by using its property named Value. Please make use of below code example for your reference.

Code Example: 
 
  
public MainWindow()   
{   
   InitializeComponent();   
   //setting the Value to SfTimePicker in code behind.   
   TimePicker1.Value = new TimeSpan(10, 24, 05);   
}   
 

Screenshot: 

Please try this solution and let us know if it helps.

Regards
Vijayalakshmi V.R.  


josep
Replied On August 3, 2017 02:15 AM

Please can you provide an example about how to set time value to SfTimePicker at codebehind?

Cheers

Cheers. It works


Vijayalakshmi Roopkumar [Syncfusion]
Replied On August 4, 2017 12:49 AM

Hi Joseph

Thank you for the update.

Please let us know if you need any further assistance on this

Regards,
Vijayalakshmi V.R.

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;