If you want to use the label in the code behind, why not just assign the Label to a variable when you new it up? For example:
var label = new Label{Text="Hello}; grid.Children.Add(label, 0,0);
If you want to use the label in the code behind, why not just assign the Label to a variable when you new it up? For example:
var label = new Label{Text="Hello};
grid.Children.Add(label, 0,0);