0

When I edit (the text of) a xaml using Visual studio I often add a new column (or line).

It's quite boring and inefficient to have to go through all the columns (or lines) to increment them. Is there a visual studio native function (or do you know of a plugin) that does it ?

(I supposed this has been asked before but I can't find the correct keywords to get the response).

frenchone
  • 1,547
  • 4
  • 19
  • 34
  • You shouldn't put tags in your title. – N_A Sep 10 '12 at 12:37
  • Correct answer is 'Please pay attention that SO is too dumb to escape the tags for you' :) – frenchone Oct 24 '12 at 12:59
  • What do you mean by adding a new column (or line) and incrementing it? Ar you talking about adding columns to a Grid? Or are you talking about adding lines in XAML and indenting them? In the last case, you can use the `Edit.FormatDocument` command by pressing Ctrl+K and then Ctrl+D. – khellang Oct 24 '12 at 13:34
  • it's not about indenting.Say I got . I insert a button between the two ( = I type ). Instead of having I want this to be turned into (note the grid.row="3" for last item) – frenchone Nov 20 '12 at 14:19

2 Answers2

1

Old question, I know, but landed here and then found this answer which I think answers the question:

https://stackoverflow.com/a/45228899/1581933

i.e. hover over the edge of the grid, click the down arrow, click 'Add Row Before'. The Grid.Rows will now auto renumber.

AAberdeen
  • 61
  • 6
  • it is rather than a comment instead of posting as an answer link in answering to the question. – Bruce Mar 07 '19 at 10:06
0

Yes, you are 100% right, that is stupid design of Grid row layout...

The XAML designer should have function to auto reorder all Grid row or Grid column values.

ariso
  • 1,433
  • 6
  • 21
  • 35