aboutsummaryrefslogtreecommitdiffstatsci
path: root/Samples/common
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2021-11-01 15:49:37 +0100
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2021-11-01 15:49:37 +0100
commitfe8c1b41ea3c994a8d31d95eefe3ddf7a92b66d2 (patch)
tree7832e9a3f2b5b74722abe3c2c64a4ad7f8a2cb2b /Samples/common
parent0bb8bc91f960611e229a7603779fd60e0473b0c5 (diff)
wip
Diffstat (limited to 'Samples/common')
-rw-r--r--Samples/common/ui/Interfaces/Experimental/multiColorPick2.crow2
-rw-r--r--Samples/common/ui/Interfaces/Experimental/multiColorPick3.crow19
2 files changed, 20 insertions, 1 deletions
diff --git a/Samples/common/ui/Interfaces/Experimental/multiColorPick2.crow b/Samples/common/ui/Interfaces/Experimental/multiColorPick2.crow
index 21490b71..66578324 100644
--- a/Samples/common/ui/Interfaces/Experimental/multiColorPick2.crow
+++ b/Samples/common/ui/Interfaces/Experimental/multiColorPick2.crow
@@ -11,7 +11,7 @@
</HorizontalStack>
</Template>/>
<TabView MinimumSize="{../MinimumPopupSize}" Width="200" Height="200" >
- <ColorPicker Name="HSV" CurrentColor="{²../../../CurrentColor}" Background="Onyx" />
+ <ColorPicker Name="HSV" CurrentColor="{²../../../CurrentColor}" Background="Onyx" BubbleEvents="None" />
<ColorPicker IsVisible="false" Name="Names" CurrentColor="{²../../../CurrentColor}" Height="Stretched" Background="Onyx">
<Template>
<ListBox Width="Stretched" Data="{./AvailableColors}" SelectedItemChanged="./onSelectedItemChanged">
diff --git a/Samples/common/ui/Interfaces/Experimental/multiColorPick3.crow b/Samples/common/ui/Interfaces/Experimental/multiColorPick3.crow
new file mode 100644
index 00000000..288e641b
--- /dev/null
+++ b/Samples/common/ui/Interfaces/Experimental/multiColorPick3.crow
@@ -0,0 +1,19 @@
+<VerticalStack>
+ <Label Text="{../cp.CurrentColor}"/>
+ <ColorPicker IsVisible="false" Name="Names" CurrentColor="{²../../../CurrentColor}" Height="Stretched" Background="Onyx">
+ <Template>
+ <ListBox Width="Stretched" Data="{./AvailableColors}" SelectedItemChanged="./onSelectedItemChanged">
+ <Template>
+ <Scroller Name="scroller1" Margin="5" ClipToClientRect="true" Background="Onyx">
+ <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>
+</VerticalStack> \ No newline at end of file