> For the complete documentation index, see [llms.txt](https://docs.apryse.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.apryse.com/uwp/ui-customization/tools-setup.md).

# Adding Tools to your UWP Viewer

Learn how to set up the Tools library project for PDFViewCtrl with this step-by-step guide. Add tools to enhance your basic viewer functionality. The Apryse uwp SDK streamlines secure document process

This guide demonstrates how to set up the Tools library project. To begin using the Tools framework, you must have first [added it to your project](/uwp/get-started/integration.md) and [set up the PDFViewCtrl](/uwp/viewer/using-pdfviewctrl.md).

1. This basic viewer doesn't support, for example, text selection out of the box. For this, we will need the tools that come with the package. First, we will add a new reference to the tools library. The tools library is shipped as part of the samples that come with the SDK. We can include the tools project in this solution.

In the solution explorer, right click on the PDFNetSample solution and select **Add** -> **Existing Project...** Navigate to the folder where the PDFNet package was unzipped, Open the Samples Folder and then the PDFViewCtrlTools\_VS2015 Folder. Inside here you should find PDFViewCtrlTools\_VS2015.csproj. Select it and select **Open**.

Adding the PDFViewCtrlTools Project to the solution

![](https://3246663708-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Frgmys2szYV2Z567Zu3vi%2Fuploads%2Fgit-blob-add2c28352f46f54698e33e0f516ad66112dba6a%2Fb7597fdaa1f80ad352b71d9cf715a99572111d9a-879x538.png?alt=media)

1. Now, we want to add this project as a reference used by PDFNetSample. We can do this in a similar way to how we added PDFNet for Windows Universal Apps. In the solution explorer, in the PDFNetSample project, right click on References and select **"Add Reference..."** In the dialog, select **Project** -> **Solution** and find PDFViewCtrlTools\_VS2015 in the list. Select it and add it by clicking OK.
2. Now that we have the library, we need to create a ToolManager and attach the PDFViewCtrl to it. Declare another member variable in MainPage.xaml.cs next to MyPDFViewCtrl.

pdftron.PDF.Tools.ToolManager MyToolManager; \`\`\`

{% code lineNumbers="true" %}

```
```

{% endcode %}

````sh
Inside the constructor for MainPage we now add one more call where we initialize the ToolManager.

```csharp
````

{% endcode %} {% endtab %} {% endtabs %}

public MainPage() { ... MyToolManager = new pdftron.PDF.Tools.ToolManager(MyPDFViewCtrl); } \`\`\`


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.apryse.com/uwp/ui-customization/tools-setup.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
