|
24 | 24 |  |
25 | 25 |
|
26 | 26 | Insert Application Commands and Application Views as you can see in the samples and the documentation in the wiki. |
27 | | - **Hint**: If you have more than one Ribbon Control for different Forms in the project, then you should name the RibbonMarkup.xml to RibbonMarkup1.xml, RibbonMarkup2.xml, ... ,RibbonMarkup9.xml |
| 27 | + |
| 28 | + **Hint**: If you have more than one Ribbon Control for different Forms in the project, then you should name the RibbonMarkup.xml to RibbonMarkup1.xml, RibbonMarkup2.xml, ... ,RibbonMarkup9.xml |
| 29 | + or with a new wrapper option (Version v2.16.0) you can generate wrapper class names like markup xml files (e.g. *First.xml* => *First.Designer.cs* with class name *First* instead RibbonItems.Designer.cs) |
28 | 30 |
|
29 | 31 | 7. Because CustomTools, like Bernhard Elbl said, do not work this way in newer Visual Studio versions like VS 2017 you have to |
30 | 32 | open a Console Window in the folder of RibbonMarkup.xml (maybe we have a solution for a CustomTool later on). Or you can use the RibbonTools.exe to design, build and preview the markup file. |
|
33 | 35 |
|
34 | 36 | 9. If the build fails with a "No Tools" error, then check the installation of the Windows SDK and the C++ Tools in Visual Studio. If the installations are OK, start the RibbonTools from Windows Startmenu, go to Settings and search for the tools uicc.exe, rc.exe and link.exe and build again. |
35 | 37 |
|
36 | | -12. Now you get some generated files, eg. RibbonMarkup.ribbon and RibbonItems.Designer.cs. Add these files to your project. |
| 38 | +12. Now you get some generated files, eg. RibbonMarkup.ribbon and RibbonItems.Designer.cs. Add these files to your project. (See hint in 6.) |
37 | 39 |
|
38 | 40 | 13. Set the Property Build Action of RibbonMarkup.ribbon to Embedded Resource. |
39 | 41 |  |
|
49 | 51 | ``` |
50 | 52 |
|
51 | 53 | to the Form1.cs. In the Constructor (Ctor) of the Forms1 after InitializeComponents() you have to call RibbonItems ribbonItems = new RibbonItems(ribbon1); |
52 | | -This is a wrapper class for all defined Ribbon Items. You can extend this class because it is a partial class. |
| 54 | +This is a wrapper class for all defined Ribbon Items. You can extend this class because it is a partial class. (See hint in 6.) |
53 | 55 |
|
54 | 56 | 16. Define the code behind for the Ribbon items in C# or VB language. |
55 | 57 |
|
|
0 commit comments