scaletransform

XAML: make a ScrollViewer show scrollbars when the ScaleTransform of a child object gets big

Hi. I am making a sort of "print preview" control for some documents in my Silverlight 3 application. I have a Canvas (for showing the document) inside of a ScrollViewer, and I have zoom in / zoom out buttons that control the X and Y Scale properties of the ScaleTransform for the Canvas.RenderTransform property. I want the scrollbars ...

Scale transform in xaml (in a controltemplate) on a button to perform a "zoom"

Hi all, I've got a button with an image in it and it's being styled by the following: <ControlTemplate x:Key="IconButton" TargetType="Button"> <Border> <ContentPresenter Height="80" Width="80" /> </Border> <ControlTemplate.Triggers> <EventTrigger RoutedEvent="Button.Cl...

.NET Graphics.ScaleTransform converts print job to bitmap. Any other way to scale text?

I'm using Graphics.ScaleTransform to stretch lines of text so they fit the width of the page, and then printing that page. However, this converts the print job to a bitmap - for a print with many pages this causes the size of the print job to rise to obscene proportions, and slows down printing immensely. If I don't scale like this, the...

ScaleTransform for Image

I am trying to increase the size of the image by 20. So I am using ScaleTransform as shown below.. but the following code doesn't do any scale Tranform.. Any help would be appreciated... <Grid> <Canvas> <Canvas Height="50" Width="50" Canvas.Top="10" Canvas.Left="100" Visibility="Visible"> <Image Name="Img" So...

ScaleTransform transforms non-linearly

I am using scale transform to allow a user to resize a control. What happens though is that when you start to move the mouse the control jumps to a new size, and then scales oddly. The further you move your mouse from the starting location the larger the increase in size becomes. I expect its the way I calculate the scale to be applie...

Zooming into a Clutter CairoTexture while re-drawing.

I am using python-clutter 1.0 My question in the form of a challenge Write code to allow zooming up to a CairoTexture actor, by pressing a key, in steps such that at each the actor can be re-drawn (by cairo) so that the image remains high-res but still scales as expected, without re-sizing the actor. Think of something like Inkscape a...

Silverlight scaletransform adjust scrollbars

I have the following UI element hierarchy: UserControl>ScrollViewer>Canvas. I am drawing lots of stuff on the canvas, and it becomes larger than the UserControl, at which point the ScrollViewer displays the scrollbars. So far, so good. Now I apply a ScaleTransform to the Canvas (say, 2.0, making everything twice as large). However, m...

Zooming an image using Data Binding in silverlight 3

I am trying to create a simple image viewer which includes a zooming slider. using Data Binding and ScaleTransform, I am trying to "zoom" the image. Here is my xaml: <Grid x:Name="LayoutRoot" Background="White"> <Grid.RowDefinitions> <RowDefinition></RowDefinition> <RowDefinition></RowDefinition> </Grid.RowDefin...