Foundations of Elegant Code
Translate This Page
Translate this page
Browse by Tags
Tagged Content List
ZoomableApplication3: When not to ApplyTransform
By default, ZoomableCanvas works by coercing its RenderTransform to be a combination of a ScaleTransform and a TranslateTransform representing the current Scale and Offset , respectively. This is the most performant mode in WPF, and makes your UIElement s scale up and down for free, but sometimes you...
18 Aug 2010
ZoomableApplication2: A Million Items
The original sample for Chris Lovett’s VirtualCanvas showed a random set of shapes on a canvas. You could use a menu to choose whether to have 5, 500, 12500, or 50000 shapes “on the canvas”. I use quotation marks because the point of the sample was to show that with UI virtualization...
11 Aug 2010
ZoomableApplication1: Scale and Offset
For the first entry in the series of examples using the ZoomableCanvas , I’ll start off with just the basics: Scale and Offset . I’ll start by creating a brand new app, renaming it from WpfApplication1 to ZoomableApplication1, and adding a reference to a class library that I created after...
5 Aug 2010
ZoomableCanvas is the Panel that displays almost all of the elements in Code Canvas . Code Canvas is actually made up of several layers of ZoomableCanvas es that are stacked on top of each other, and they are synchronized by simply sharing the same values for Scale and Offset . Scale and Offset are the...
29 Jul 2010
When I started writing Code Canvas back in 2008, I quickly realized that using a simple ScaleTransform on an existing Canvas would not produce the experience that I wanted. This was mostly because the elements on my canvas have many fine details such as the dog-ears on files, the icons next to identifiers...
26 Jul 2010
Page 1 of 1 (5 items)
© 2015 Microsoft Corporation.
Privacy & Cookies