How to use chrome control in SharePoint add-in project?

How to use chrome control in SharePoint add-in project?

On the Start page drop-down menu, select the webpage that uses the chrome control. Make sure that the SharePoint Add-in project is set as the startup project. Select the F5 key. (Note that when you select F5, Visual Studio builds the solution, deploys the add-in, and opens the permissions page for the add-in.)

Is the add-in web the same as the host web?

The special website to which the add-in is deployed is called an add-in web. The website to which the add-in is installed is called the host web. Although the add-in web has its own isolated domain, it is in the same site collection as the host web.

How to add add-in icon to chrome control?

The chrome control uses the add-in’s icon, so we need a second copy of the icon file on the remote web server. In Solution Explorer, right-click the AppIcon.png file in the ChainStore project, and select Copy. Right-click the Images folder in the ChainStoreWeb project, and select Paste.

How is the host URL obtained in SharePoint?

The remote web application obtains the host web URL from a query string parameter that SharePoint adds to the URL of the start page when it launches the add-in. Because SSL is being used, this query string is encrypted as it goes across the Internet to the remote web application.

How to create SharePoint add-in template in Visual Studio?

Create a new project by using the SharePoint Add-in template. The following figure shows the location of the SharePoint Add-in template in Visual Studio 2015, under Templates > Visual C# > Office/SharePoint > Office Add-ins. Provide the URL of the SharePoint website that you want to use for debugging.

How to find SharePoint components in an add in?

Find out which SharePoint components can be included in a SharePoint Add-in, which components are deployed to the host web, which components are deployed to the add-in web, and how the add-in web is deployed in an isolated domain. A cloud-hosted add-in includes at least one remote component.

How to add SharePoint add-in in Visual Studio 2015?

The following figure shows the location of the SharePoint Add-in template in Visual Studio 2015, under Templates > Visual C# > Office/SharePoint > Office Add-ins. Provide the URL of the SharePoint website that you want to use for debugging. Select Provider-hosted as the hosting option for your add-in.