Configure the SDK
In order to use MobbSign Windows SDK in your (native Windows Store) application you must follow these steps:
- Install the Sdk Visual Studio Extension (MobbSignUWP.vsix) from the libs folder of the zip by executing it (doble click on it) and following the steps of the installer. Once installed, open your solution in Visual Studio. Check, in Extensions -> Manage Extensions -> Installed, that MobbSign has been correctly installed.
Include MobbSign reference by right click on your project in “Solution Explorer -> Add Reference… -> Windows -> Extensions” and select “MobbSign SDK for Windows Store apps”.
To check if the extension has been successfully referenced, in the References folder of your project you could see the extension “MobbSign for Windows Store apps”. If at this point, there is a small yellow exclamation mark on the "MobbSign for Windows Store Apps" reference, that means you need to change architecture from "Any CPU" to either "ARM", "x86" or "x64".
Include the sdk NuGet dependencies by unloading the project of your application (right click on the project in Solution Explorer -> Unload project). Add in project code view, below the Microsoft.UniversalWindows platform ItemGroup, the following ItemGroup that contains the NuGet references needed for MobbSign:
<ItemGroup>
<PackageReference Include="Microsoft.Data.Sqlite">
<Version>7.0.11</Version>
</PackageReference>
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite">
<Version>3.1.23</Version>
</PackageReference>
<PackageReference Include="Newtonsoft.Json">
<Version>13.0.3</Version>
</PackageReference>
<PackageReference Include="PDFTron.UWP">
<Version>10.4.0</Version>
</PackageReference>
<PackageReference Include="PDFTron.UWP.Tools">
<Version>10.4.0</Version>
</PackageReference>
<PackageReference Include="Portable.BouncyCastle">
<Version>1.9.0</Version>
</PackageReference>
<PackageReference Include="WriteableBitmapEx">
<Version>1.6.8</Version>
</PackageReference>
</ItemGroup>
Load the project again (right click on the project in Solution Explorer -> Load project), compile your application and check if the NuGet packages has been successfully added in the References folder of your project.
Create your MobbSignView in your Page, and add it as a children of your page main container.
public MainPage()
{
this.InitializeComponent();
this.MobbSignView = new MobbSignView();
this.LayoutRoot.Children.Add(MobbSignView);
}
SDK Example
See the section SDK Example for more info.