Partager via


Zoomable Canvas Control

Kael has a nice series on the Zoomable Canvas control

The usage is something like

<ListBox.ItemsPanel>
<ItemsPanelTemplate>
<ZoomableCanvas Loaded="ZoomableCanvas_Loaded"
RealizationLimit="1000"
RealizationRate="10"
RealizationPriority="Background"/>
</ItemsPanelTemplate>
</ListBox.ItemsPanel>

(Move the Slider right to see it in action)

(this is an xbap in an iframe. Would require IE\FireFox with .NET4 on your machine)

Slide the slider right to populate the canvas. You can zoomin\out using the mouse scroll.

Share this post

Comments

  • Anonymous
    August 11, 2010
    You've been kicked (a good thing) - Trackback from DotNetKicks.com

  • Anonymous
    August 11, 2010
    Thank you for submitting this cool story - Trackback from DotNetShoutout

  • Anonymous
    August 13, 2010
    PresentationHost.exe consumed 1 GB after a few zoom-ins and zoom-outs. Yikes