aboutsummaryrefslogtreecommitdiffstatsci
path: root/Tests/Interfaces/TemplatedControl
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/Interfaces/TemplatedControl')
-rwxr-xr-xTests/Interfaces/TemplatedControl/testItemTemplateTag.crow68
1 files changed, 32 insertions, 36 deletions
diff --git a/Tests/Interfaces/TemplatedControl/testItemTemplateTag.crow b/Tests/Interfaces/TemplatedControl/testItemTemplateTag.crow
index 90c475a5..7ddaf863 100755
--- a/Tests/Interfaces/TemplatedControl/testItemTemplateTag.crow
+++ b/Tests/Interfaces/TemplatedControl/testItemTemplateTag.crow
@@ -1,37 +1,33 @@
<?xml version="1.0"?>
-<Border BorderWidth="2" Fit="true">
- <VerticalStack Fit="true" Margin="5">
- <ListBox Data="{TestList}" Background="0.5,0.5,0.5,0.7"
- HorizontalAlignment="Center" Width="200" Height="200" Margin="5">
- <Template>
- <Border BorderWidth="1">
- <HorizontalStack Margin="1">
- <Scroller Name="scroller1"
- Margin="2" ScrollY="{../scrollbar1.Value}">
- <VerticalStack Height="Fit" MinimumSize="10,10"
- Name="ItemsContainer" Margin="0" VerticalAlignment="Top"/>
- </Scroller>
- <ScrollBar Name="scrollbar1" Value="{²../scroller1.ScrollY}"
- LargeIncrement="{../scroller1.PageHeight}" SmallIncrement="30" CursorSize="{../scroller1.ChildHeightRatio}"
- Maximum="{../scroller1.MaximumScroll}" Orientation="Vertical"
- Width="14" />
- </HorizontalStack>
- </Border>
- </Template>
- <ItemTemplate DataType="Crow.Color">
- <HorizontalStack
- HorizontalAlignment="Left"
- Height="Fit" Width="200" Margin="1" Focusable="true"
- MouseEnter="{Background=hgradient|0:DarkRed|1:Transparent}"
- MouseLeave="{Background=Transparent}">
- <GraphicObject Height="12" Width="20" Background="{}" Margin="0" CornerRadius="3"/>
- <Label Text="{}" Margin="0" Width="Stretched"/>
- </HorizontalStack>
- </ItemTemplate>
- </ListBox>
- <HorizontalStack Fit="true" HorizontalAlignment="Right">
- <Button Caption="Load list" MouseDown="OnLoadList"/>
- <Button Caption="Clear" MouseDown="OnClear"/>
- </HorizontalStack>
- </VerticalStack>
-</Border>
+<VerticalStack Fit="true" Margin="5">
+ <ListBox Data="{TestList}"
+ HorizontalAlignment="Center" Width="200" Height="200" Margin="5">
+ <Template>
+ <HorizontalStack Margin="1">
+ <Scroller Name="scroller1" Margin="2" >
+ <VerticalStack Height="Fit" MinimumSize="10,10" Width="Stretched"
+ Name="ItemsContainer" Margin="0" VerticalAlignment="Top"/>
+ </Scroller>
+ <ScrollBar Name="scrollbar1" Value="{²../scroller1.ScrollY}"
+ LargeIncrement="{../scroller1.PageHeight}" SmallIncrement="30"
+ CursorSize="{../scroller1.ChildHeightRatio}"
+ Maximum="{../scroller1.MaxScrollY}" Orientation="Vertical"
+ Width="14" />
+ </HorizontalStack>
+ </Template>
+ <ItemTemplate DataType="Crow.Color">
+ <HorizontalStack
+ HorizontalAlignment="Left"
+ Height="Fit" Width="200" Margin="1" Focusable="true"
+ MouseEnter="{Background=hgradient|0:DarkRed|1:Transparent}"
+ MouseLeave="{Background=Transparent}">
+ <GraphicObject Name="colIco" Height="12" Width="20" Background="{}" Margin="0" CornerRadius="3"/>
+ <Label Text="{}" Margin="0" Width="Stretched"/>
+ </HorizontalStack>
+ </ItemTemplate>
+ </ListBox>
+ <HorizontalStack Fit="true" HorizontalAlignment="Right">
+ <Button Caption="Load list" MouseDown="OnLoadList"/>
+ <Button Caption="Clear" MouseDown="OnClear"/>
+ </HorizontalStack>
+</VerticalStack>