# How to Use WPFElementHostZoomPolicy

To use the zoom policy, complete the following:

## Content



To use the zoom policy, complete the following:

1. In Visual Studio, click **Project| Add New Item**.

2. In the left pane of the **Add New Item** dialog box, select **Visual C# Items**.

3. Next, select **VisualBasicPowerPacksZoomPolicy** from the middle pane.

![add element host item](https://cdn.mescius.io/document-site-files/images/b72f799f-5669-44a4-8119-5f3343d59999/images/wpfelementhostaddnewitem.png)

4. Click **Add** button.

5. Build the project.

6. Select **C1Zoom**, **C1ZoomPanel** or **C1ApplicationZoom** component in design time.

7. Click a Smart Tag anchor of the component, and click **Edit ZoomPolicies...**.

![edit zoom policies](https://cdn.mescius.io/document-site-files/images/b72f799f-5669-44a4-8119-5f3343d59999/images/editzoompolicies.png)

8. Click **Add Custom Policy** drop down button in the **ZoomPolicy Collection Editor** window, **WPF\_ElementHostZoomPolicy** will be added.

![zoom policy collection editor](https://cdn.mescius.io/document-site-files/images/b72f799f-5669-44a4-8119-5f3343d59999/images/wpfzoompolicycoleditor.png)