How to set tabindex zero in WPF

i have 2 buttons(Submit, Cancel) in window, and i set TabIndex="0" to submit button, when i run the application, its not setting tabindex 0 at first time.

after i press tab key than tab is focusing to submit button,

but i want at run time tab should set 0