Lester's WPF\SL Blog

Simple, Easy & Beautiful

Zoomable Canvas Control

Zoomable Canvas Control

Rate This
  • Comments 3

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

 

  • You've been kicked (a good thing) - Trackback from DotNetKicks.com

  • Thank you for submitting this cool story - Trackback from DotNetShoutout

  • PresentationHost.exe consumed 1 GB after a few zoom-ins and zoom-outs. Yikes

Page 1 of 1 (3 items)