Home > DeveloperSection > Interviews > Are XAML files compiled or built at runtime?

Posted on    November-17-2012 7:56 AM

 1 Answer(s)
  1973  View(s)
Rate this:


Total Post:257

Posted on    November-17-2012 1:00 AM

XAML files are usually compiled rather than parsed at runtime. But it also supports parsing during runtime. When we build a XAML based project, you will see it creates a g.cs extension in the obiDebug folder. Therefore, for every XAML file, you will find a g.cs file. For instance, a MainPage.XAML will have a MainPage.g.cs file in the obiDebug folder. In short, at run time, you actually do not see the XAML file. But if you want to do runtime parsing of the XAML file, it also allows that to be done.

Don't want to miss updates? Please click the below button!

Follow MindStick