views:

29

answers:

1

Hi,

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!

+1  A: 

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.

Wonko the Sane