@@ -20,7 +20,7 @@ public class App : ExtensionApplication
20
20
21
21
public override void OnStartup ( RibbonControl ribbonControl )
22
22
{
23
- var ribbonPanel = ribbonControl . CreateOrSelectPanel ( PanelName , TabName ) ;
23
+ var ribbonPanel = ribbonControl . CreateOrSelectPanel ( TabName , PanelName ) ;
24
24
25
25
ribbonPanel . RowLargeStackedItems (
26
26
ribbonPanel . CreateButton ( "Theme" )
@@ -88,11 +88,39 @@ await autoCADTask.Run(() =>
88
88
. SetCommand ( ( ) => { paletteSet ? . ToggleVisible ( ) ; } )
89
89
. SetLargeImage ( "Resources/Cube-Grey-Light.tiff" ) ;
90
90
91
+ ribbonPanel . AddSeparator ( ) ;
92
+
93
+ ribbonPanel . CreateSplitButton ( "Split" ,
94
+ ribbonPanel . CreateButton ( "Grey" )
95
+ . SetCommand ( e=> Windows . MessageBox . ShowMessage ( e . Text ) )
96
+ . SetLargeImage ( "Resources/Cube-Grey-Light.tiff" ) ,
97
+ ribbonPanel . CreateButton ( "Red" )
98
+ . SetCommand ( e => Windows . MessageBox . ShowMessage ( e . Text ) )
99
+ . SetLargeImage ( "Resources/Cube-Red-Light.tiff" ) ,
100
+ ribbonPanel . CreateButton ( "Green" )
101
+ . SetCommand ( e => Windows . MessageBox . ShowMessage ( e . Text ) )
102
+ . SetLargeImage ( "Resources/Cube-Green-Light.tiff" )
103
+ ) ;
104
+
105
+ ribbonPanel . CreatePulldownButton ( "Pulldown" ,
106
+ ribbonPanel . CreateButton ( "Grey" )
107
+ . SetCommand ( e => Windows . MessageBox . ShowMessage ( e . Text ) )
108
+ . SetLargeImage ( "Resources/Cube-Grey-Light.tiff" ) ,
109
+ ribbonPanel . CreateButton ( "Red" )
110
+ . SetCommand ( e => Windows . MessageBox . ShowMessage ( e . Text ) )
111
+ . SetLargeImage ( "Resources/Cube-Red-Light.tiff" ) ,
112
+ ribbonPanel . CreateButton ( "Green" )
113
+ . SetCommand ( e => Windows . MessageBox . ShowMessage ( e . Text ) )
114
+ . SetLargeImage ( "Resources/Cube-Green-Light.tiff" )
115
+ )
116
+ . SetLargeImage ( "Resources/Cube-Green-Light.tiff" )
117
+ . SetDescription ( "This is a PulldownButton" ) ;
118
+
91
119
ribbonControl . ActiveTab = ribbonPanel . Tab ;
92
120
}
93
121
public override void OnShutdown ( RibbonControl ribbonControl )
94
122
{
95
- ribbonControl . RemovePanel ( PanelName , TabName ) ;
123
+ ribbonControl . RemovePanel ( TabName , PanelName ) ;
96
124
}
97
125
98
126
private RibbonButton ribbonButtonBusy ;
0 commit comments