xceedsoftware/wpftoolkit

With DateTimePicker Can't Access PART_TextBox

Opened this issue · 2 comments

Hello, I trying to access the PART_TextBox, So when I click the tab button on the date to go next date part gets null.

Hello, you can always create your own DateTimePicker and retrieve the PART_TextBox control from OnApplyTemplate():
` public class MyDateTimePicker : DateTimePicker
{
public override void OnApplyTemplate()
{
base.OnApplyTemplate();

 var textBox = this.GetTemplateChild( "PART_TextBox" ) as TextBox;

}
}`