In WPF how to define a Data template in case of enum?
- by Ashish Ashu
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 !!