c# - XAML designer intellisense-like structured suggestion -


with given class (containing hundreds of constants)

public class objects {     public class cars     {         public class opel         {             public const string corsa = "some parameters";             ...         }         public class ford { ... }         ...     } } 

it easy find needed constant in code behind (talking intellisense suggestions):

var parameter = objects.cars.opel.corsa; 

when typing objects. prompted cars, after typing objects.cars. there suggestion opel, ford, etc. , after object.cars.opel there suggestion corsa (among others).

my question approach should use provide same kind of suggestion in xaml designer?


to example, if have markup extension , i'd assist programmer in choosing proper value out of list, make enum, set property of type , rest happens auto-magically:

however, when dealing hundreds of constants i'd prefer have kind of structured selection, similar described earlier intellisense support nested classes suggestion.

and struggling find nice way of how organize that. ideas?


Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

c - Unrecognised emulation mode: elf_i386 on MinGW32 -