aboutsummaryrefslogtreecommitdiffstatsci
path: root/Samples/ShowCase/ui/showcase.crow
blob: 7610e9b6b5481a332e88d0c365f5f80c2f579624 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?xml version="1.0"?>
<HorizontalStack Background="DarkGrey" >
	<VerticalStack  Width="25%">
		<HorizontalStack Height="Fit" Margin="2" Background="Onyx">
			<Image Margin="2" Width="16" Height="16" Path="#Crow.Icons.level-up.svg" MouseClick="./goUpDirClick"
						 Background="Jet" MouseEnter="{Background=Grey}" MouseLeave="{Background=Jet}" />			
			<TextBox Text="{²CurrentDir}" Margin="2"/>
		</HorizontalStack>		
		<DirectoryView Margin="1" Name="dv" CurrentDirectory="{CurrentDir}" SelectedItemChanged="Dv_SelectedItemChanged"/>
	</VerticalStack>
	<Splitter Width="6" />
	<VerticalStack>
		<Container Name="CrowContainer" Height="60%" Background="Black"/>
		<Splitter/>
		<VerticalStack>
			<HorizontalStack Height="Fit">
				<Button Style="IcoButton" Command="{CMDNew}" />
				<Button Style="IcoButton" Command="{CMDSave}" />
				<Button Style="IcoButton" Command="{CMDSaveAs}" />
			</HorizontalStack>
			<HorizontalStack>
				<Scroller Name="scroller1" Background="White"
						Margin="2" ScrollY="{../scrollbar1.Value}">
					<TextBox VerticalAlignment="Top"
						Text="{²Source}" Multiline="true" TextAlignment="TopLeft"
						Font="mono 10"/>
				</Scroller>
				<ScrollBar Name="scrollbar1" Value="{../scroller1.ScrollY}"
					LargeIncrement="{../scroller1.PageHeight}" SmallIncrement="30"
					CursorSize="{../scroller1.ChildHeightRatio}" Maximum="{../scroller1.MaxScrollY}" />
			</HorizontalStack>
			<Label Text="{CurrentFile}" Width="Stretched"/>
			<Label Visible="{ShowError}" Text="{ErrorMessage}" Background="Red" Foreground="White" Width="Stretched" Margin="2"
				Multiline="true"/>
		</VerticalStack>
	</VerticalStack>
</HorizontalStack>