I want do rotate button to 90 degrees but it gets clipped because it rotates arount (0,0). How to make it rotate around center if I don't know it't width in pixels (it's a template for many buttons)
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
- How to know full paths to DLL's from .csproj f
My understanding is that the origin isn't relevant with a LayoutTransform.
MSDN says:
and the following "correctly" rotates the button.
You have to set the control's RenderTransformOrigin to 0.5, 0.5.
ex.: