views:

37

answers:

1

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
I did and it seemed to work ok. I just wanted to confirm, though...
CraigS
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