public void ReadInputsToFile() { foreach (UIElement ui in Stack.Children) { CharacterInput input = ui as CharacterInput; input.item.Node.Value = input.textBox.Text; } }
/// <summary> /// Uses an XML reader to add controls from a formatted XML file. /// </summary> public void AddControls() { foreach (Control control in ctrlList) { CharacterInput charInput = new CharacterInput(control); Stack.Children.Add(charInput); } }