I am doing some custom drawing using DrawingContext in WPF. I am using DrawingContext.DrawText
for drawing strings. Now, at a place I want to draw the text vertically. Is there any option in the DrawingContext OR DrawText() function to draw text vertically?
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Generic Generics in Managed C++
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
You will have to use
PushTransform
andPop
methods ofDrawingContext
class.Sorry, I had to post this because I was hitting my head against a wall for fifteen minutes trying to figure this out. I don't want anyone else to go through that.
Here is my solution: It is need to create rotate transform around the text origin, so we pass x and y to RotateTransform constructor