diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2021-11-01 15:49:37 +0100 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2021-11-01 15:49:37 +0100 |
| commit | fe8c1b41ea3c994a8d31d95eefe3ddf7a92b66d2 (patch) | |
| tree | 7832e9a3f2b5b74722abe3c2c64a4ad7f8a2cb2b /Samples | |
| parent | 0bb8bc91f960611e229a7603779fd60e0473b0c5 (diff) | |
wip
Diffstat (limited to 'Samples')
| -rw-r--r-- | Samples/common/ui/Interfaces/Experimental/multiColorPick2.crow | 2 | ||||
| -rw-r--r-- | Samples/common/ui/Interfaces/Experimental/multiColorPick3.crow | 19 |
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 |