PrepAway - Latest Free Exam Questions & Answers

You need to keep the style and navigation of the app th…

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 byany customer.
What should you do?

PrepAway - Latest Free Exam Questions & Answers

A.
Use an app template and an app.master master file for branding.

B.
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.

C.
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 the HTML page in a declarative manner.

D.
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.

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


Leave a Reply