在新窗口或列表框中编辑项目?用什么比较好?
我正在使用 WPF,例如我有“职业”列表框(姓名、假期日期、假期名称等)。
我需要做的是编辑和添加教授。
这可以通过带有可编辑文本框和日期选择器的添加和编辑的新窗口来完成。典型的方式。
或者我可以创建 DataTemplateSelector 我的列表框,并在用户单击“编辑”后将 DefaultItemTemplate 更改为 EditingItemTemplate。这样我们就不需要新窗口了。 这是屏幕截图:http://i52.tinypic.com/303l6d4.png
对用户更好?我想我喜欢方法#2。但对于用户来说是不是看起来很复杂?
谢谢。
I'm using WPF and for example I have listbox of "professions" (Name, Holiday Date, Holiday Name, etc).
What I need to do is to edit and add profs.
This could be done with new window of Adding and Editing with editable textboxes and datepickers. Typical way.
Or I could create DataTemplateSelector my listbox and after user click "edit" change DefaultItemTemplate to EditingItemTemplate. In this way we have no need for new window.
Here is the screenshot: http://i52.tinypic.com/303l6d4.png
What way will be better for users? I think I like the way #2. But doesn't it look much complicated for users?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我想说第二种方法更好。特别是如果编辑应该是您的应用程序的一种非常典型的操作,我建议您通过单击其中一个字段来实现切换到编辑模式,并在用户输入时自动更改聚焦字段的内容,换句话说,实现类似于 Excel 单元格的行为。如果此表单的典型用例只是浏览,那么值得考虑添加一个将当前项目切换到编辑模式的风格化按钮/链接。另外,最好在项目模板的右侧(例如右上角)为每个典型操作(“显示客户”)添加这样一个按钮。仅当选择项目或鼠标悬停在该项目上时才显示这些按钮。从上下文菜单中打开并选择所需的常用操作是相当“压力”的体验:)
I'd say the second approach is mach better. Especially if editing is supposed to be a very typical operation for your application I'd suggest you implement switching to the editing mode by click on an one of those fields, also automatically change a content of focused field on user input, in other words implement a behavior similar to Excel's cells. If the typical use case of this form is just browsing then its worth to consider adding a stylized button/link that switches current item to edit mode. Also probably its better to add such a button for each typical action ("Show clients") right to the item template (to the right top corner for example). And display these buttons only if item is selected or mouse is over this item. Opening and selecting a desired usual action from the context menu is quite "stressful" experience :)