The Menu tool groups a set of elements and displays them as a drop-down menu as shown in the below image.
The C1MenuTool can be added using XAML code as shown below.
XAML |
Copy Code
|
---|---|
<!-- Add menu tool --> <c1:C1MenuTool Label="Open"> <c1:C1MenuTool.IconTemplate> <c1:C1IconTemplate> <c1:C1BitmapIcon Source="/openProject.png" /> </c1:C1IconTemplate> </c1:C1MenuTool.IconTemplate> <c1:C1ButtonTool Label="Project..." > <c1:C1ButtonTool.IconTemplate> <c1:C1IconTemplate> <c1:C1BitmapIcon Source="/open.png" /> </c1:C1IconTemplate> </c1:C1ButtonTool.IconTemplate> </c1:C1ButtonTool> <c1:C1ButtonTool Label="Web Site..."> <c1:C1ButtonTool.IconTemplate> <c1:C1IconTemplate> <c1:C1BitmapIcon Source="/openWebSite.png" /> </c1:C1IconTemplate> </c1:C1ButtonTool.IconTemplate> </c1:C1ButtonTool> <c1:C1ButtonTool Label="File..."> <c1:C1ButtonTool.IconTemplate> <c1:C1IconTemplate> <c1:C1BitmapIcon Source="/openFile.png"/> </c1:C1IconTemplate> </c1:C1ButtonTool.IconTemplate> </c1:C1ButtonTool> </c1:C1MenuTool> |