You can make a TextBox with a Binding on a property in your ViewModel and put the binding in mode=TwoWay for update your ViewModel value from the user interface.
In your ViewModel:
public int UserID { get; set; }
In your Xaml:
<TextBox Text="{Binding UserID, mode=TwoWay}"/>
After that you can store yours resulting items in a List and Bind it to a ItemsSource Property in a ListBox.
In your ViewModel:
public List<YourResultType> Items { get; private set; }
In your Xaml:
<ListBox ItemsSource="{Binding Items}"/>
I hope it will help you.