M
M
Mikhail2018-01-01 18:17:17
WPF
Mikhail, 2018-01-01 18:17:17

How to scale all elements drawn on the canvas?

Hello. I am writing a desktop application in C# using WPF. I have canvas:

<Canvas DockPanel.Dock="Left" RenderTransformOrigin="0.5, 0.5">
      <Canvas.RenderTransform>
           <ScaleTransform ScaleY="-1" />
      </Canvas.RenderTransform>
</Canvas>

And I want all the elements that will be drawn on it to be drawn 2 times smaller. Is that possible? Maybe you need to set the DPI or something like that?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question