I have a <Grid>
set up just the way I want with each cell containing a <Label>
.
I want this because I want the labels to have a fixed position on the screen. For example, if I have an array {"One, "Two", "Three"}
it should go on screen as:
[ One ]________ [ Two ] ________ [ Three ]
If that array is {"One, "Three"}
, I want the space for two reserved like so:
[ One ] ______________________ [ Three ]
The grid handles this nicely.
Now I want to bind the content of those labels to a structure in the code-behind and am struggling to get the label to bind to a specific index of the ObservableCollection
in my code-behind.