glasswizzard
Well-known member
- Joined
- Nov 22, 2019
- Messages
- 126
- Programming Experience
- Beginner
This might seem pointless but I'd like to know if this is possible and practice doing it.
I want to type into a text box and have the text mirrored onto the form, say below the textbox. I don't want to bind a textblock to a string property even though that will do exactly as I just described. I want the word that is mirrored onto the form to consists of an individual textblock in an individual grid column for each letter, this would go into a cell on the main grid, likely centered in the form below the textbox.
So if I type the word "Hello" into the text box a five column grid would be created, in each column would be one textblock showing a single letter of the word "Hello". It's hard for me to think about attempting this because I don't know how this can be done without explicitly creating and naming the controls. I imagine using a "foreach (char c in stringName)" loop, each time a column is made, a textblock is made, added to the grid and changed to the appropriate letter but maybe I'm thinking about that wrong? How would I do this?
Thanks
I want to type into a text box and have the text mirrored onto the form, say below the textbox. I don't want to bind a textblock to a string property even though that will do exactly as I just described. I want the word that is mirrored onto the form to consists of an individual textblock in an individual grid column for each letter, this would go into a cell on the main grid, likely centered in the form below the textbox.
So if I type the word "Hello" into the text box a five column grid would be created, in each column would be one textblock showing a single letter of the word "Hello". It's hard for me to think about attempting this because I don't know how this can be done without explicitly creating and naming the controls. I imagine using a "foreach (char c in stringName)" loop, each time a column is made, a textblock is made, added to the grid and changed to the appropriate letter but maybe I'm thinking about that wrong? How would I do this?
Thanks