2. Select the file (Dynamic_Content.xaml) in Solution Explorer and go to the properties.
3. Set “Build Action” as “Content” and “Copy to Output Directory” as “Copy always”.
4. Then you can use XamlReader class for reading the XAML content which we have the controls.
5. Please use the following code to read and load controls from XAML content file.