ARE XAML FILES COMPILED OR BUILT AT RUNTIME?

AVADHESH PATEL

Total Post:257

Points:1285
Posted by  AVADHESH PATEL
WPF 
WPF
 2183  View(s)
Ratings:
Rate this:
  1. AVADHESH PATEL

    Post:257

    Points:1285
    Are XAML files compiled or built at runtime?

    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.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!