سؤال

I am trying to place the cursor at the end of the text in textbox inside Microsoft.Phone.Controls.AutoCompleteBox. how can i do this?

It is strange that AutoCompleteBox has Focus function but no function for Select.

هل كانت مفيدة؟

المحلول

It's pretty much explained on this blog

Basically, it comes down to getting the inner TextBox

var textbox = GetTemplateChild("Text") as TextBox;

And then from there you can easily do whatever you would otherwise do with a TextBox.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top