如何使用 C# Windows 窗体在窗口 7 中创建类似于文件替换对话框的 UI? [英] How to create UI similar to file replace dialog in window 7 using C# Windows Forms?

查看:23
本文介绍了如何使用 C# Windows 窗体在窗口 7 中创建类似于文件替换对话框的 UI?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要创建一个对话框,允许用户在几个相当复杂的操作之间进行选择.我真的很喜欢 windows 7 文件替换对话框的可用性,我认为它非常适合我的需求.这是一个截图供参考:

I need to create a dialog that allows user to choose between several rather complex actions. I really like the usability of the windows 7 file replace dialog and I think it would suit my needs very well. Here's a screenshot for reference:

是否可以使用用于 Windows 对话框的控件?如果没有,您建议如何创建与此对话框类似的 UI?

Is it possible to use the controls that were used for windows dialog? If not, how would you recommend creating UI similar to this dialog?

推荐答案

似乎可以通过一个包含几个文本标签和三个自定义控件的窗口轻松完成此操作 - 以及一些用于箭头和文件图标的图像 - 每个当用户将鼠标悬停在它们上方时,其中的背景图像会改变它们的背景图像 - 并在单击它们时触发窗口拾取的事件.相当标准的 WinForms 东西.

Seems like this could easily be done with a window containing a few labels for the text and three custom controls - with some images for the arrows and file icons - each of which changes their background image when the user mouses over them - and fires an event the window picks up on when they are clicked. Fairly standard WinForms stuff.

您是否需要在流程的某个特定部分获得额外帮助?例如,鼠标悬停?

Is there a particular part of the process you need some extra help with? Like, for example, the mouse over?

这篇关于如何使用 C# Windows 窗体在窗口 7 中创建类似于文件替换对话框的 UI?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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