开发者

problem with tabbed interface as mentioned in the article of josh smith

开发者 https://www.devze.com 2022-12-24 22:45 出处:网络
I\'ve got a problem with my program. Here is the link: http://dl.dropbox.com/u/2734432/TabbedInterface.7z

I've got a problem with my program.

Here is the link: http://dl.dropbox.com/u/2734432/TabbedInterface.7z

开发者_StackOverflow中文版

Once you have opened both tabs, you'll start losing the references to other collections of the current item in the view. That is because these IDs are nullable and once you switch over to the other tab they'll become null. My question is: why and how can I correct that behavior?

If you change the int? to int there are no more problems, but I need them to be nullable!


The tabbed interface in the article is half baked, its has other problems as:

  • It opens two tabs for the same record
  • The list get changed even when the changes are not commited by the user
  • You can't doble-click the list to go the record
  • etc.

Check other frameworks as Prism for more ready-to-use solutions.


You might have a look at the WPF Application Framework (WAF). It contains the Writer sample application which comes with an improved tabbed interface.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号