blob: e30dd7ae2fb7a9f31d40b4cdac9454168257e817 (
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
|
<VerticalStack>
<ColorPicker Name="cp" Width="300" Height="20" >
<Template>
<ColorPicker CurrentColor="{²./CurrentColor}" Height="Stretched">
<Template>
<ListBox Data="{./AvailableColors}" SelectedItemChanged="./onSelectedItemChanged">
<Template>
<Scroller Name="scroller1" Margin="5" Height="Stretched">
<Wrapper Name="ItemsContainer" Height="Fit" VerticalAlignment="Top"/>
</Scroller>
</Template>
<ItemTemplate>
<Border Width="16" Height="16" Background="{}" Foreground="Transparent" Tooltip="{}"
MouseEnter="{Foreground=Black}"
MouseLeave="{Foreground=Transparent}"/>
</ItemTemplate>
</ListBox>
</Template>
</ColorPicker>
</Template>
</ColorPicker>
<Border CornerRadius="5" Margin="10" Width="Fit" Height="40" Background="{../cp.CurrentColor}">
<Label Text="{../../cp.CurrentColor}"/>
</Border>
</VerticalStack>
|