blob: e1915e65b7d30b51317ae034e6bd0c60a2c0330e (
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
<?xml version="1.0"?>
<Window Template="#Crow.ToolWindow.template" AlwaysOnTop="true" Width="400" Height="300"
HorizontalAlignment="Right" VerticalAlignment="Bottom">
<VerticalStack>
<Button Caption="update" MouseClick="onColorUpdate"/>
<HorizontalStack Height="Fit" DataSource="{../kvpList.SelectedItem}" Margin="10">
<Label Text="{Key}" Margin="0" Width="Stretched" Font="mono, 8"/>
<ComboBox Data="{TestList}" ItemTemplate="#Tests.Interfaces.colorItem2.crow" Name="combo"
SelectedItem="{Value}">
<Template>
<Popper Caption="{./SelectedItem}" Name="popper" PopDirection="Bottom" Foreground="{./Foreground}" Background="{./Background}">
<Template>
<CheckBox Caption="{./Caption}" IsChecked="{²./IsPopped}" Foreground="{./Foreground}" Background="{./Background}">
<Template>
<Border CornerRadius="0" Foreground="LightGrey">
<HorizontalStack Margin="0" Spacing="1">
<!---<Widget Height="8" Width="14" Background="{./Caption}" Margin="0" CornerRadius="2"/>-->
<Label MinimumSize="80,10" Text="{./Caption}" Margin="0" Width="Stretched" Font="mono, 8"/>
<Button Width="14" Height="14" Focusable="false"
Template="#Crow.Templates.ArrowBut.template">
<Image Margin="0" Path="#Crow.Images.Icons.updown.svg" SvgSub="down"/>
</Button>
</HorizontalStack>
</Border>
</Template>
</CheckBox>
</Template>
<Border Background="DimGrey" BorderWidth="1" Margin="1"
MinimumSize="{../../MinimumPopupSize}" Fit="true">
<Scroller Name="scroller1" Margin="2"
MaximumSize="0,200"
HorizontalAlignment="Left">
<VerticalStack
Height="Fit" Name="ItemsContainer" Margin="0"
HorizontalAlignment="Left"
VerticalAlignment="Top"/>
</Scroller>
</Border>
</Popper>
</Template>
</ComboBox>
<Widget Height="8" Width="14" Background="{Value}" Margin="0" CornerRadius="2"/>
</HorizontalStack>
<HorizontalStack>
<ListBox Name="kvpList" Data="{ColorsKVPList}" Margin="0"
Template="#Crow.Templates.ScrollingListBox.template">
<ItemTemplate>
<Border Foreground="Transparent" Focusable="true" HorizontalAlignment="Left" Height="Fit">
<HorizontalStack Margin="0"
MouseEnter="{Background=CornflowerBlue}"
MouseLeave="{Background=Transparent}">
<Widget Height="8" Width="14" Background="{Value}" Margin="0" CornerRadius="2"/>
<Label Text="{Key}" Margin="0" Width="Stretched" Font="mono, 8"/>
</HorizontalStack>
</Border>
</ItemTemplate>
</ListBox>
</HorizontalStack>
</VerticalStack>
</Window>
|