diff options
Diffstat (limited to 'Samples/ShowCase/ui')
| -rw-r--r-- | Samples/ShowCase/ui/showcase.crow | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/Samples/ShowCase/ui/showcase.crow b/Samples/ShowCase/ui/showcase.crow index c5b683da..62b676df 100644 --- a/Samples/ShowCase/ui/showcase.crow +++ b/Samples/ShowCase/ui/showcase.crow @@ -76,8 +76,17 @@ </VerticalStack>--> <Container Name="CrowContainer" Height="60%" Background="Black"/> <Splitter/> + <Menu Data="{EditorAllCommands}" Height="Fit" Width="Stretched"> + <ItemTemplate DataType="Crow.Command" Path="Interfaces/menuCommand.itmp"/> + <ItemTemplate DataType="Crow.CommandGroup" > + <MenuItem Data="{Commands}" Width="Fit" IsEnabled="{CanExecute}" + Template="Interfaces/menuItem.template" + ItemTemplate="Interfaces/menuItem.itmp"> + </MenuItem> + </ItemTemplate> + </Menu> <VerticalStack CacheEnabled="true"> - <Wrapper Orientation="Vertical" Height="Fit"> + <!-- <Wrapper Orientation="Vertical" Height="Fit"> <Button Style="IcoButton" Command="{CMDNew}" /> <Button Style="IcoButton" Command="{CMDSave}" /> <Button Style="IcoButton" Command="{CMDSaveAs}" /> @@ -151,10 +160,10 @@ Tooltip="Add '*source* where you want to load the source in the editor."/> </VerticalStack> </Popper> - </Wrapper> + </Wrapper>--> <HorizontalStack> <Editor Name="tb" Text="{Source}" Multiline="true" Font="consolas, 12" Focusable="true" Height="Stretched" Width="Stretched" - TextChanged="onTextChanged" KeyDown="textView_KeyDown" ContextCommands="{EditorCommands}" + TextChanged="onTextChanged" KeyDown="textView_KeyDown" ContextCommands="{EditorEditCommands}" SelectionChanged="onEditorSelectionChanged" Foreground="DarkGrey" Background="White" MouseWheelSpeed="20"/> <ScrollBar Value="{²../tb.ScrollY}" |