Pierre-Alain Vigeant
Pierre-Alain Vigeant

Reputation: 23093

WPF Paper-like control

I want to create a WPF control that look like a white sheet of paper floating inside a container of some sort. I want to be able to drag the paper around and zoom.

I am rather new to WPF and I would like to know which control I should look into to create that.

I presume the paper itself will be a inkcanvas, but what control should the container be?

Upvotes: 1

Views: 584

Answers (2)

Akash Kava
Akash Kava

Reputation: 39946

WPF already has FixedPage document pages that look like normal paper and when you put it inside document viewer, it looks exactly same as Adobe Reader, and you can put all you want inside FixedPage, you can also derive from FixedPage and put your stuff in it.

Upvotes: 0

Gishu
Gishu

Reputation: 136633

I think you should take a look at the ScrollViewer WPF control. Here's an overview at MSDN. This should provide a scrollable view of a larger contained control like a Canvas for example.

Here's another link which seems to address your need.

Upvotes: 1

Related Questions