开发者

WPF menu - Intermediate menu item clickable

I have a menu in wpf(mvvm). Menu is of three level.

         Level1

Level2_1 Level2_2

Level2_1_1, Level2_1_2, Level2_1_3

How do I make intermediate menu item clickable. I mean, I want to make "Level2_1" clickable.

Example:-

             America

California              Kenucky  开发者_运维百科       Indiana

              Louisville  Lexington

I want to make submenu(California, Kenucky,Indiana) clickable. Thanks in advance!


That's not how menus work.

Menus are either a clickable option, or a parent menu of a submenu. Doing otherwise is going to, at best, confuse your users. Also, you are looking at a maintenance headache. I can think of no other application that does this.

There may be a "hack" to do this, but I would recommend against it.

A better option is to have a filterable UI (be it a View, or a dialog, or whatever) that allows your users to chose which option(s) or filters to use. It will be much more logical and therefore easier to use, and it will be much more easy to code and maintain.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜