English 中文(简体)
1. 主要/详细情况
原标题:Master/Detail UI Best Practices?

我们拥有一个拥有主机/尾窗的WPF数据网。 当你选择上层数据网的浏览时,详细情况见下级数据网。 我很想知道,在如何处理诸如:

  1. When the window first opens, no datarow is selected in the upper datagrid, and so no data can be displayed in the lower grid. Is this normal? Or is there typically an initial (top) row selected in the upper datagrid?
  2. When a row is selected and then deleted - does another row become the selected row? Or are you going to go to a no row selected state?
  3. If multiple rows can be selected, when happens in the lower datagrid? Show the last one selected? Or if delete is selected for these multiple objects, where is focus set? Or what row is selection?

我知道,根据说明书的撰写方式,可以以多种不同的方式处理这些问题,但我想知道,是否有一些标准的最佳做法? 或者,对于WPF数据网如何处理这些案件,是否有一些缺省业务?

thanks! Bill

问题回答

我认为,头两个考虑可以优先。 我更愿意选择第一行,并在窗口首次开放时显示其细节——这告诉我,作为用户,这一窗口是如何运作的。 不能确定它如何在WPF中工作,而是在Windows表格中工作,数据网格预选上顶层的 default(并促使它停止工作,这就需要trick。

当我去掉一行时,我个人宁愿走到“没有选择的”状态,但从“为什么你应该这样做”的角度来看,我没有什么回头。 我只想看到空洞的“详细”观点和缺乏选择,因为我确实成功地取消了选定的行文。

然而,我认为,最后一点更为明确。 如果你们有主人/详细的看法,你就不应允许多重选择。 如果用户需要能够在主电网的多个行子上采取行动,那么你可以给各行添加一些检查箱,使用户能够选择一个子行。 但是,为了显示细节,现在只能选择一行。





相关问题
WPF convert 2d mouse click into 3d space

I have several geometry meshes in my Viewport3D, these have bounds of (w:1800, h:500, d:25). When a user clicks in the middle of the mesh, I want the Point3D of (900, 500, 25)... How can I achieve ...

Editing a xaml icons or images

Is it possible to edit a xaml icons or images in the expression design or using other tools? Is it possible to import a xaml images (that e.g you have exported) in the expression designer for editing?...

WPF: writing smoke tests using ViewModels

I am considering to write smoke tests for our WPF application. The question that I am faced is: should we use UI automation( or some other technology that creates a UI script), or is it good enough to ...

WPF - MVVM - NHibernate Validation

Im facing a bit of an issue when trying to validate a decimal property on domain object which is bound to a textbox on the view through the viewmodel. I am using NHibernate to decorate my property on ...

How do WPF Markup Extensions raise compile errors?

Certain markup extensions raise compile errors. For example StaticExtension (x:Static) raises a compile error if the referenced class cannot be found. Anyone know the mechanism for this? Is it baked ...

WPF design-time context menu

I am trying to create a custom wpf control, I m wondering how I can add some design-time features. I ve googled and can t seem to get to my goal. So here s my simple question, how can I add an entry ...

How to combine DataTrigger and EventTrigger?

NOTE I have asked the related question (with an accepted answer): How to combine DataTrigger and Trigger? I think I need to combine an EventTrigger and a DataTrigger to achieve what I m after: when ...

热门标签