Xuni libraries are available via NuGet, a Visual Studio extension that automatically adds libraries and references to your project. Follow the steps in the Xuni Installation Wizard to create a Xuni NuGet feed source or you can manually create a Xuni feed source also.
Samples
Samples for the product are installed in the Xuni Samples folder by default.
C:\Users\<username>\Documents\Xuni Samples
To Install NuGet
- Go to http://nuget.org/ and click Install NuGet.
- Run the NuGet.vsix installer.
- In the Visual Studio Extension Installer window click Install.
- Once the installation is complete, click Close.
To add Xuni References to your App
In order to use Xuni controls on the three platforms: Android, iOS and WinPhone, Xuni references have to be added to all three projects for each of these platforms. Complete the following steps to add Xuni references to your project.
- Open a pre-existing Mobile App or create a new Mobile App (see Creating a New Xamarin.Forms App).
- From the Project menu, select Manage NuGet Packages. The Manage NuGet Packages dialog box appears.
- Click Online and then click Xuni.
- Click Install next to Xuni.ControlName (for example Xuni.FlexChart). This adds the references for the Xuni control.
- Click I Accept to accept the ComponentOne license for Xuni and then click Close in the Manage NuGet Packages dialog box.
- Open a pre-existing Mobile App or create a new Mobile App (see Creating a New Xamarin.Forms App).
- In the Solution Explorer, right click the project and select Add | Add Packages. The Add Packages dialog is appears.
- From the drop down menu in the top left corner, select Xuni. The available Xuni packages are displayed.
- Select the package Xuni.ControlName and click the Add Package button. This adds the references for the Xuni control.
Complete the following steps to manually add Xuni NuGet feed URL to your NuGet settings in Visual Studio or Xamarin Studio and install Xuni.
- From the Tools menu, select NuGet Package Manager | Package Manager Settings. The Options dialog box appears.
- In the left pane, select Package Sources.
- Click the Add button in top right corner. A new source is added under Available package sources.
- Set the Name of the new package source as Xuni. Set the Source as http://nuget.grapecity.com/nuget/.
- Click OK. The Xuni feed has now been added as another NuGet feed source.
To install Xuni using the new feed:
- Open a pre-existing Mobile App or create a new Mobile App (see Creating a New Xamarin.Forms App).
- Select Project | Manage NuGet Packages. The Manage NuGet Packages dialog box appears.
- Click Online and then click Xuni. The available Xuni packages are displayed in the right pane.
- Click Install next to Xuni.ControlName (for example Xuni.FlexChart). This updates the references for the Xuni control.
- Click I Accept to accept the ComponentOne license for Xuni and then click Close in the Manage NuGet Packages dialog box.
- From the Projects menu, select Add Packages. The Add Packages dialog is appears.
- From the drop down menu on the top left corner, select Configure Sources. The Preferences dialog appears.
- In the left pane, expand Packages and select Sources.
- Click the Add button. The Add Package Source dialog appears.
- Set the Name of the new package source as Xuni. Set the URL as http://nuget.grapecity.com/nuget/.
- Click the Add Source button. The Xuni feed has now been added as another NuGet feed source.
- Click OK to close the Preferences dialog.
To install Xuni using the new feed:
- Open a pre-existing Mobile App or create a new Mobile App (see Creating a New Xamarin.Forms App).
- In the Solution Explorer, right click the project and select Add | Add Packages. The Add Packages dialog appears.
- From the drop down menu on the top left corner, select Xuni. The available Xuni packages are displayed.
- Select the package Xuni.ControlName and click the Add Package button. This adds the references for the Xuni control.
See Also