WDE - update text in notepad

Hi,
Can any one help how to update the text in notepad (using notepadviewmodel).

thanks in advance.

Hi,

Depending on how and where you want to update the text in Notepad the best place to start would be to get the interaction and then use the code below:

                            INotepadViewModel notepadViewModel = inter.UserData.TryGetValue("NotepadViewModel") as INotepadViewModel;
                            if (notepadViewModel != null)
                            {
                                notepadViewModel.Text = "My Text";
                            }