在Windows应用程序中下拉菜单设计 [英] Drop down menu design in windows application

查看:107
本文介绍了在Windows应用程序中下拉菜单设计的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想设计.net windows应用程序中的下拉菜单

(就像asp .net应用程序中的css vertical expand collapse菜单一样(请参阅avast防病毒主页图片我觉得这是一个windows应用程序) )



任何人都可以帮我解决这个问题



提前感谢

(Keerthi Kumar)

I want to design drop down menu in .net windows application
(like css vertical expand collapse menu in asp .net application( refer avast antivirus home page image i think this is a windows application))

can any one please help me to solve this issue

thanks in advance
(Keerthi Kumar)

推荐答案

下拉列表被称为 ComboBox [ ^ ]在Windows窗体中以及 WPF [ ^ ]。你使用哪一个取决于你正在创建的Windows应用程序的变体(Forms或WPF)。





更多个人,你必须建立你对更基本的东西的控制。



你需要一个事件,你的下拉列表显示。你需要再次隐藏它的另一个事件。



你指向的东西看起来像一个标签 [ ^ ]显示其 MouseEnter事件 [ ^ ]。标签的 MouseLeave事件 [ ^ ]以及就像它自己的MouseLeave事件一样。



下拉列表本身可以实现为 UserControl [ ^ ]你可以设计成你想要的样子。

[/ Edit]
Dropdowns are called ComboBox[^] in Windows Forms as well as in WPF[^]. Which one you use depends on what variant of windows application you're creating (Forms or WPF).


For something more individual, you have to build your control on more basic stuff.

You need an event upon which your dropdown is shown. And you need another event upon which it is hidden again.

What you pointed to looks like a Label[^] that shows the dropdown on its MouseEnter event[^]. The dropdown vanishes on the label's MouseLeave event[^] as well as on its own MouseLeave event.

The dropdown itself can be implemented as a UserControl[^] that you can design to look like what you want it to.
[/Edit]


这篇关于在Windows应用程序中下拉菜单设计的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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