When you create a XAML page in Silverlight or WPF, the system creates a top level container called "LayoutRoot". Is there anything special about this name, or can the top level container be called anything (or even nothing)?
+5
A:
You can absolutely call it whatever you like. There is nothing special about the LayoutRoot name.
I have to ask though, and I don't mean to seem facetious, did you try removing the name and seeing what happens?
Alastair Pitts
2010-10-07 23:24:19
I did and it seemed to work ok. I just wanted to confirm, though...
CraigS
2010-10-07 23:29:46
Hehe, no probs :) Confirmation is always a good thing. And I'm sure there will be other surfing the net that are asking the same question.
Alastair Pitts
2010-10-07 23:42:05