Click here to Skip to main content
15,909,332 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: Hyperlink As TreeView Node Binding Problem Pin
SledgeHammer016-Nov-13 11:29
SledgeHammer016-Nov-13 11:29 
GeneralRe: Hyperlink As TreeView Node Binding Problem Pin
Kevin Marois6-Nov-13 11:36
professionalKevin Marois6-Nov-13 11:36 
QuestionHow to create dynamically textbox on UI in MVVVM Pin
Ashfaque Hussain4-Nov-13 4:56
Ashfaque Hussain4-Nov-13 4:56 
AnswerRe: How to creates dynamically textbox on UI in MVVVM Pin
Mycroft Holmes4-Nov-13 11:45
professionalMycroft Holmes4-Nov-13 11:45 
GeneralRe: How to creates dynamically textbox on UI in MVVVM Pin
Ashfaque Hussain6-Nov-13 23:32
Ashfaque Hussain6-Nov-13 23:32 
GeneralRe: How to creates dynamically textbox on UI in MVVVM Pin
Pete O'Hanlon6-Nov-13 23:56
mvePete O'Hanlon6-Nov-13 23:56 
GeneralRe: How to creates dynamically textbox on UI in MVVVM Pin
Ashfaque Hussain7-Nov-13 19:30
Ashfaque Hussain7-Nov-13 19:30 
GeneralRe: How to creates dynamically textbox on UI in MVVVM Pin
Pete O'Hanlon7-Nov-13 21:05
mvePete O'Hanlon7-Nov-13 21:05 
GeneralRe: How to creates dynamically textbox on UI in MVVVM Pin
Ashfaque Hussain7-Nov-13 23:16
Ashfaque Hussain7-Nov-13 23:16 
QuestionWPF inbuilt form Pin
shers30-Oct-13 22:44
shers30-Oct-13 22:44 
AnswerRe: WPF inbuilt form Pin
GuyThiebaut31-Oct-13 3:46
professionalGuyThiebaut31-Oct-13 3:46 
AnswerRe: WPF inbuilt form Pin
_Maxxx_31-Oct-13 23:52
professional_Maxxx_31-Oct-13 23:52 
QuestionHow to bind textboxes text to the ViewModel Pin
Ashfaque Hussain30-Oct-13 1:43
Ashfaque Hussain30-Oct-13 1:43 
AnswerRe: How to bind textboxes text to the ViewModel Pin
Ashfaque Hussain30-Oct-13 2:23
Ashfaque Hussain30-Oct-13 2:23 
GeneralRe: How to bind textboxes text to the ViewModel Pin
David C# Hobbyist.30-Oct-13 4:47
professionalDavid C# Hobbyist.30-Oct-13 4:47 
GeneralRe: How to bind textboxes text to the ViewModel Pin
Ashfaque Hussain30-Oct-13 4:53
Ashfaque Hussain30-Oct-13 4:53 
GeneralRe: How to bind textboxes text to the ViewModel Pin
David C# Hobbyist.30-Oct-13 5:03
professionalDavid C# Hobbyist.30-Oct-13 5:03 
GeneralRe: How to bind textboxes text to the ViewModel Pin
Ashfaque Hussain30-Oct-13 7:55
Ashfaque Hussain30-Oct-13 7:55 
QuestionRe: How to bind textboxes text to the ViewModel Pin
Matt T Heffron30-Oct-13 11:07
professionalMatt T Heffron30-Oct-13 11:07 
AnswerRe: How to bind textboxes text to the ViewModel Pin
Ashfaque Hussain30-Oct-13 18:40
Ashfaque Hussain30-Oct-13 18:40 
GeneralRe: How to bind textboxes text to the ViewModel Pin
Matt T Heffron31-Oct-13 7:37
professionalMatt T Heffron31-Oct-13 7:37 
First you need to initialize MyViewModelList when the View Model is constructed.

C#
private const int NumberOfStrings = 3;  // use appropriate number (and better name), your code showed 3
public ViewModel()   // constructor
{
  MyViewModelList = new List<string>(NumberOfStrings);
  for (int i = 0; i < NumberOfStrings; ++i)
  {
    MyViewModelList[i] = string.Empty;
  }
}
public List<string> MyViewModelList { get; private set; }

At this point, the TextBoxes will be bound to the empty strings, and should update the corresponding entry in the MyViewModelList whenever they lose focus.
GeneralRe: How to bind textboxes text to the ViewModel Pin
Ashfaque Hussain31-Oct-13 8:09
Ashfaque Hussain31-Oct-13 8:09 
QuestionHow to import the row items of datagrid to the Stackpannel in MVVM Pin
Ashfaque Hussain28-Oct-13 23:20
Ashfaque Hussain28-Oct-13 23:20 
AnswerRe: How to import the row items of datagrid to the Stackpannel in MVVM Pin
Mycroft Holmes29-Oct-13 2:01
professionalMycroft Holmes29-Oct-13 2:01 
GeneralRe: How to import the row items of datagrid to the Stackpannel in MVVM Pin
Ashfaque Hussain29-Oct-13 4:27
Ashfaque Hussain29-Oct-13 4:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.