在 Windows 窗体中旋转 .NET 面板 [英] Rotating a .NET panel in Windows Forms

查看:39
本文介绍了在 Windows 窗体中旋转 .NET 面板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们使用 Windows Forms 和自定义用户控件,我希望能够以特定形式旋转承载 userControl 的面板.我在 WPF 中看到了类似的功能,但我暂时无法使用它.是否可以使用可能的内置 .NET 方法或 来实现面板及其子项的旋转GDI+?

We use Windows Forms and custom user controls, and I would like to be able to rotate the panel hosting the userControl in a particular form. I have seen similar functionnalities with WPF, but I can't use it for the moment. Is it possible to achieve the rotation of a panel and its children using possibly built-in .NET methods or GDI+?

我在游戏开发中看到了一些非常酷的菜单视觉效果,所以我想知道是否可以使用 Windows 窗体创建类似的效果.

I have seen some pretty cool visual effect with menus that are displayed in game development, so I was wondering if it would be possible to create similar effects using Windows Forms.

推荐答案

在 Windows 窗体中旋转面板及其子项不是直接支持的,我认为它最终会成为一个容易吸收大量时间.考虑何时可以在 WPF 中使用零行 C# 代码和只有一点点XAML.

Rotating a panel and its children in Windows Forms is not something directly supported, and I think it will end up being a buggy headache that could easily suck up lots of time. It's especially painful to think about when you could do this in WPF with zero lines of C# code and only a tiny bit of XAML.

这篇关于在 Windows 窗体中旋转 .NET 面板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆