diff --git a/Tutorial/GacUI_Controls/DocumentEditor/UI/Ribbon.xml b/Tutorial/GacUI_Controls/DocumentEditor/UI/Ribbon.xml index 2851da40..823a7c3b 100644 --- a/Tutorial/GacUI_Controls/DocumentEditor/UI/Ribbon.xml +++ b/Tutorial/GacUI_Controls/DocumentEditor/UI/Ribbon.xml @@ -1,119 +1,214 @@ - - - - - - self.document.observe as _(self.SelectAlignmentCommand() == self.commandAlignLeft on _.SelectionChanged) - self.document.observe as _(self.SelectAlignmentCommand() == self.commandAlignCenter on _.SelectionChanged) - self.document.observe as _(self.SelectAlignmentCommand() == self.commandAlignRight on _.SelectionChanged) + + - - - - - - - - self.EditModeCommand.LargeImage ?? null - - - - - - - - - - - - - - - - + + + + + + + + - - - - - - - - - - - - - - - - - - - - + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - + @cpp:Private + func GetStyleGroups(): demo::StyleGroup^[] + { + var group1 = new StyleGroup^(); + group1.Name = "Group A"; + for (i in range [1, 5]) + { + group1.Items.Add(new StyleItem^("A" & i)); + } - - - - - - - - - - - - - - - - - - - - \ No newline at end of file + var group2 = new StyleGroup^(); + group2.Name = "Group B"; + for (i in range [1, 5]) + { + group2.Items.Add(new StyleItem^("B" & i)); + } + + return {group1 group2}; + } + ]]> + + + self.document.observe as _(self.SelectAlignmentCommand() == self.commandAlignLeft on _.SelectionChanged) + self.document.observe as _(self.SelectAlignmentCommand() == self.commandAlignCenter on _.SelectionChanged) + self.document.observe as _(self.SelectAlignmentCommand() == self.commandAlignRight on _.SelectionChanged) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + self.EditModeCommand.LargeImage ?? null + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + self.GetStyleGroups() + Name + Items + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Tutorial/Lib/GacUI/GacUI.vcxproj b/Tutorial/Lib/GacUI/GacUI.vcxproj index d5e9cc07..656396ee 100644 --- a/Tutorial/Lib/GacUI/GacUI.vcxproj +++ b/Tutorial/Lib/GacUI/GacUI.vcxproj @@ -89,7 +89,10 @@ /bigobj %(AdditionalOptions) - + + /bigobj %(AdditionalOptions) + /bigobj %(AdditionalOptions) + /bigobj %(AdditionalOptions) /bigobj %(AdditionalOptions)