diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2020-06-06 13:40:54 +0200 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2020-06-06 13:40:54 +0200 |
| commit | c928fc85cd1faed7273722f99b2a1edd9de14299 (patch) | |
| tree | f9344290fb876906205f9d8ab4b401ec3d040250 /Samples/common/ui/Interfaces/TemplatedControl/testCheckbox.crow | |
| parent | d88c47659d248dbf5b4ec2b071906fafe013011e (diff) | |
slider as base for scrollbar, gauge widget
Diffstat (limited to 'Samples/common/ui/Interfaces/TemplatedControl/testCheckbox.crow')
| -rw-r--r-- | Samples/common/ui/Interfaces/TemplatedControl/testCheckbox.crow | 37 |
1 files changed, 28 insertions, 9 deletions
diff --git a/Samples/common/ui/Interfaces/TemplatedControl/testCheckbox.crow b/Samples/common/ui/Interfaces/TemplatedControl/testCheckbox.crow index 7c8438c0..b5eb0fc7 100644 --- a/Samples/common/ui/Interfaces/TemplatedControl/testCheckbox.crow +++ b/Samples/common/ui/Interfaces/TemplatedControl/testCheckbox.crow @@ -1,11 +1,30 @@ <?xml version="1.0"?> -<VerticalStack Fit="true" Margin="100" Background="DimGrey" > - <CheckBox Background="Grey" MouseEnter="{Background=Red}" MouseLeave="{Background=Transparent}"/> - <CheckBox Background="Grey" MouseEnter="{Background=Red}" MouseLeave="{Background=Transparent}"/> - <CheckBox Background="Grey" MouseEnter="{Background=Red}" MouseLeave="{Background=Transparent}"/> - <CheckBox Background="Grey" MouseEnter="{Background=Red}" MouseLeave="{Background=Transparent}"/> - <CheckBox Background="Grey" MouseEnter="{Background=Red}" MouseLeave="{Background=Transparent}"/> - <CheckBox Background="Grey" MouseEnter="{Background=Red}" MouseLeave="{Background=Transparent}"/> - <CheckBox Background="Grey" MouseEnter="{Background=Red}" MouseLeave="{Background=Transparent}"/> - <CheckBox Background="Grey" MouseEnter="{Background=Red}" MouseLeave="{Background=Transparent}"/> +<VerticalStack Margin="50" Background="DarkGrey" Spacing="10" > + <CheckBox /> + <CheckBox Background="Jet"> + <Template> + <HorizontalStack Spacing="5" Background="{./Background}" Margin="5"> + <Label Text="{./Caption}"/> + <Label Text="{./IsChecked}"/> + </HorizontalStack> + </Template> + </CheckBox> + <CheckBox Background="Onyx" Width="Stretched"> + <Template> + <HorizontalStack Spacing="4" Background="{./Background}" Margin="4"> + <Border BorderWidth="0" Width="16" Height="16" Background="Black" Margin="1"> + <Widget Background="SeaGreen" Visible="{./IsChecked}"/> + </Border> + <Label Text="{./Caption}"/> + </HorizontalStack> + </Template> + </CheckBox> + <CheckBox Background="Jet" Height="30" Width="60" Checked="{Background=SeaGreen}" > + <Template> + <Group Background="{./Background}" Margin="0" CornerRadius="100"> + <Shape Name="sh" HorizontalAlignment="Left" Width="{./Height}" Foreground="Grey" Size="16,16" Path="A 8,8,7.5,0,6.3 f O 1,1,1,1 G "/> + <Shape Visible="{./IsChecked}" HorizontalAlignment="Right" Width="{./Height}" Foreground="Grey" Size="16,16" Path="A 8,8,7.5,0,6.3 f O 1,1,1,1 G "/> + </Group> + </Template> + </CheckBox> </VerticalStack> |