You create a cloud-hosted SharePoint app.
You must make the app available in the SharePoint Store for customers to install on their host webs.
You need to keep the style and navigation of the app the same as the host web of the app after it is installed by
any customer.
What should you do?
A.
Add a reference to SP.UI.Controls.js on the host web. Pass the AppUrl parameter to the host web. Apply
branding to the host web.
B.
Copy the CSS file from the app to the host web. Run the Chrome control to convert the CSS file to the host
web format. Apply the styles contained in the CSS file to the host web.
C.
Use a Chrome control to find the differences in the styles between the host web and the app.
Resolve all of the differences by using JavaScript.
D.
Add a reference to the SP.UI.Controls.js file located in the new /_layouts/15 directory. Pass the HostUrl
parameter to the start page of the app. Use the Chrome control in JavaScript.
Explanation:
Microsoft allows developers to import a very basic version of the SharePoint 2013 chrome into their apps
without having to manually create matching HTML controls. The functionality for this can be found in the
SP.UI.Controls.js file located in the new /_layouts/15 directory. To use the chrome control, first add a reference
to SP.UI.Controls.js (make sure you’ve already loaded the requisite JQuery files and other dependencies), then
add an empty <div> to your page markup at or near the top of the page.
Using the Chrome Control in SharePoint 2013 Apps