简体   繁体   English

是否有.NET Framework控件用于外观和行为类似于控制面板链接的按钮?

[英]Is there a .NET Framework control for buttons that look and behave like control panel links?

Can I use one of these link-like buttons in a WinForms app (eg "Control Panel Home", "Add a Device" etc. see pic)? 我可以在WinForms应用程序中使用这些链接式按钮之一(例如“控制面板主页”,“添加设备”等)吗?

In Windows 7+ settings they are everywhere. 在Windows 7+设置中,它们无处不在。 I wonder that must be a common control? 我想知道这一定是一个通用控件吗? If you hover over them they are highlighted and underlined. 如果将鼠标悬停在它们上方,它们将突出显示并带有下划线。 You click on them you fire an event etc. LinkLabel behaves differently and I can't find LinkButton in .NET. 您单击它们会触发事件等LinkLabel行为有所不同,我在.NET中找不到LinkButton

在此处输入图片说明

I believe that the LinkLabel control is what you want. 我相信LinkLabel控件就是您想要的。

To get it to behave like the Control Panel, set it's LinkBehavior property to HoverUnderline 要使其具有类似于控制面板的行为,请将其LinkBehavior属性设置为HoverUnderline

您可以尝试使用最适合您的DotNetBars和选择控件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM