Are XAML file compiled or built on runtime?

 Posted by articlesMaint on 9/14/2009 | Category: WPF Interview questions | Views: 7286


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


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response