“实时编辑”中的从属属性的验证WPF应用程序

发布于 2024-08-26 11:35:23 字数 270 浏览 3 评论 0原文

我正在开发一个支持实时编辑的应用程序。也就是说,您更新一个区域中的属性,然后单击“应用”即可在另一区域中看到它们的影响。恰好是一个图表应用程序。一个这样的编辑“组”允许指定一个范围。实际上是三重范围:高、目标和低。

我们的验证是,高必须大于目标,目标必须大于低(火箭科学)。

我们的困境是,当有人想要从 30、20、10 到 15、10、5 时,视觉体验会有点不和谐。我很好奇是否有人针对这种情况实现了一种机制,该机制可能非常适合我们的情况,这样我们就不会在用户更改范围值时对他们“大喊大叫”。

I'm working on an app which supports live editing. That is you update properties in one area and their impact is seen in another with hitting "apply". Happens to be a charting app. One such edit "group" allows specifying a range. A triple range in fact: High, Target and Low.

Our validation is such that High must be greater than target, target must be greater than Low (rocket science).

Our dilemma is that the visual experience is a bit jarring when someone wants to go from say 30,20,10 to 15,10,5. I'm curious if anyone has implemented a mechanism for this scenario that might fit well in our situation such that we don't "yell" at the user as they change the range values.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

从来不烧饼 2024-09-02 11:35:23

关键是在不打扰用户的情况下提醒用户出现问题。

也许是这样的:

显示 UI 拍摄前后的图像,其中显示红色条带读数:高值必须大于目标值。此外,高场变为红色。 http://img176.imageshack.us/img176/9930/validationui.png

如果这仍然太大声,您可以去掉红色填充,只使用红色轮廓。

The key is to alert users that something is wrong without interrupting them.

Perhaps something like this:

Image showing before and after shots of a UI with the after showing a red strip reading: High must be greater than Target. Also, the High field is turned red. http://img176.imageshack.us/img176/9930/validationui.png

If this is still too loud, you can get rid of the red fill and just use red outlines.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文