Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
905
XamTextEditor's cursor always goes to home
posted

Hi,

I have a XamTextEditor and button below. I want to input some text in to XamTextEditor. When user clicks the button I want to add some text like " Okkes Emin BALCICEK " to XamTextEditor and send focus to XamtextEditor. Ffter ControlEditor.Focus() command cursor goes to home. I want to send cursor to end. How can I do ?

<

 

Button Height="30" Click="Button_Click"></Button>

<

 

infraEd:XamTextEditor x:Name="ControlTextEditor" IsAlwaysInEditMode="True"></infraEd:XamTextEditor>

 

 

 

private void Button_Click(object sender, RoutedEventArgs e)
{
  ControlTextEditor.Text = ControlTextEditor.Text + "Okkes Emin Balcicek";

ControlEditor.Focus();

}

Parents Reply Children
No Data