In WPF how to define a Data template in case of enum?

Posted by Ashish Ashu on Stack Overflow See other posts from Stack Overflow or by Ashish Ashu
Published on 2010-03-14T10:58:31Z Indexed on 2010/03/14 11:05 UTC
Read the original article Hit count: 437

Filed under:
|
|
|

I have a Enum defined as Type

public Enum Type { OneType, TwoType, ThreeType };

Now I bind Type to a drop down Ribbon Control Drop Down Menu in a Ribbon Control that displays each menu with a MenuName with corresponding Image.

( I am using Syncfusion Ribbon Control ).

I want that each enum type like ( OneType ) has data template defined that has Name of the menu and corrospending image.

How can I define the data template of enum ?

Please suggest me the solution, if this is possible !!

Please also tell me if its not possible or I am thinking in the wrong direction !!

© Stack Overflow or respective owner

Related posts about wpf

Related posts about xaml