I have a window in WPF which contains a Grid. The Grid initially has one row and a TextBox in that row. When the user clicks a Button, I have to add a row to the grid with another TextBox. While this seems doable, I need to the grid to be scrollable when the rows exceed the height of the grid. (this sort of resembles how you add attachments to email. You add one, and then say add one more..and the list goes on). Am I going about this the right way or is there a better way to do this?
I have a window in WPF which contains a Grid . The Grid initially
Share
Can’t answer whether you’re going about it the right way as you’ve not supplied any code.
Here’s how I’d do it. My view models:
In my view, something like this: