aboutsummaryrefslogtreecommitdiffstatsci
path: root/Samples/ShowCase/ui/showcase.crow
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2021-11-07 11:34:04 +0100
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2021-11-07 11:34:04 +0100
commitdbb9034d864fc42f92a66b08a0734edc3dc73e8c (patch)
treeb5498e51945c1bb47f8b01a40fdc1c24087ea725 /Samples/ShowCase/ui/showcase.crow
parent325573e4c0328189cf2353b31fc68780224bbc57 (diff)
doc, remplated menubar for showcase, disposable cursorParent in sliderdevel2
Diffstat (limited to 'Samples/ShowCase/ui/showcase.crow')
-rw-r--r--Samples/ShowCase/ui/showcase.crow15
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}"