CheckBox { Caption = CheckBox; }
RadioButton { Caption = RadioButton; }
Expandable { Caption = Expandable; }
-Popper { Caption = Popper; }
+Popper { Caption = Popper;}
GroupBox { Caption = Group Box; }
+
+ControlBorder {
+ BorderWidth = 1;
+ Foreground = Jet;
+ Background = Transparent;
+}
+ControlCaption {
+ Foreground = Gray;
+ MouseEnter = {Foreground=White};
+ MouseLeave = {Foreground=Gray};
+}
+Icon {
+ Margin=1;
+ Width=12;
+ Height=12;
+}
+
Wrapper {
Orientation = Vertical;
}
Scroller {
CacheEnabled = false;
}
-Icon {
- Margin=1;
- Width=12;
- Height=12;
-}
Control {
Margin=0;
Spacing=3;
<?xml version="1.0"?>
-<Border BorderWidth="1" Foreground="{./Foreground}" Background="{./Background}">
+<Border Style="ControlBorder" Foreground="{./Foreground}" Background="{./Background}">
<VerticalStack>
<HorizontalStack Spacing="1" Height="Fit" MouseDoubleClick="./onClickForExpand">
<Container Margin="1" Width="9" Height="9" Focusable="true" MouseClick="./onClickForExpand"
Visible="{./IsExpandable}"
SvgSub="{./IsExpanded}"/>
</Container>
- <Label Text="{./Caption}"/>
+ <Label Style="ControlCaption" Text="{./Caption}"/>
</HorizontalStack>
<Container Name="Content" Visible="false"/>
</VerticalStack>
Foreground = "{./Foreground}" CanPop="{./HasChildren}" MouseClick="./onMI_Click"
IsPopped="{²./IsOpened}" PopWidth="{./PopWidth}" PopHeight="{./PopHeight}">
<Template>
- <Border Name="border1"
- MouseEnter="{Foreground=vgradient|0:White|0.2:Gray|0.9:Gray|1:Black}"
- MouseLeave="{Foreground=Transparent}"
- MouseDown="{Foreground=vgradient|0:Black|0.05:Gray|0.85:Gray|1:White}"
- MouseUp="{Foreground=vgradient|0:White|0.2:Gray|0.9:Gray|1:Black}"
- MinimumSize = "60,0"
- Foreground="Transparent"
- Background="{./Background}">
- <Label Text="{./Caption}"
- Foreground="{./Foreground}"
- Margin="2" HorizontalAlignment="Left"
- Font="{./Font}" />
- </Border>
+ <CheckBox IsChecked="{²./IsPopped}" Caption="{./Caption}" Background="{./Background}" Foreground="{./Foreground}">
+ <Template>
+ <Border Name="border1"
+ MouseEnter="{Foreground=vgradient|0:White|0.2:Gray|0.9:Gray|1:Black}"
+ MouseLeave="{Foreground=Transparent}"
+ MouseDown="{Foreground=vgradient|0:Black|0.05:Gray|0.85:Gray|1:White}"
+ MouseUp="{Foreground=vgradient|0:White|0.2:Gray|0.9:Gray|1:Black}"
+ MinimumSize = "60,0"
+ Foreground="Transparent"
+ Background="{./Background}">
+ <Label Text="{./Caption}"
+ Foreground="{./Foreground}"
+ Margin="2" HorizontalAlignment="Left"
+ Font="{./Font}" />
+ </Border>
+ </Template>
+ </CheckBox>
</Template>
<Border Foreground="DimGray" Width="{../PopWidth}" Height="{../PopHeight}" Background="Onyx">
<VerticalStack Name="ItemsContainer"/>
<?xml version="1.0"?>
-<Border Background="{./Background}" BorderWidth="1" Foreground="{./Foreground}" Height="Fit">
- <HorizontalStack Spacing="1" Height="Fit">
- <Image Style="Icon" Margin="1" Width="9" Height="9"
- Path="#Crow.Images.Icons.expandable.svg" SvgSub="{./IsPopped}"/>
- <Label Text="{./Caption}" />
- </HorizontalStack>
-</Border>
\ No newline at end of file
+<CheckBox Caption="{./Caption}" IsChecked="{²./IsPopped}" Foreground="{./Foreground}" Background="{./Background}">
+ <Template>
+ <Border Style="ControlBorder" Foreground="{./Foreground}" Background="{./Background}">
+ <HorizontalStack Spacing="1">
+ <Image Style="Icon" Margin="1" Width="9" Height="9"
+ MouseEnter="{Background=White}" MouseLeave="{Background=Transparent}"
+ Background="{./Background}"
+ Path="#Crow.Images.Icons.expandable.svg" SvgSub="{./IsChecked}"/>
+ <Label Style="ControlCaption" Text="{./Caption}" />
+ </HorizontalStack>
+ </Border>
+ </Template>
+</CheckBox>
</VerticalStack>
<Splitter/>
<VerticalStack Width="40%" Margin="5" Spacing="5">
- <Expandable Background="DimGray">
+ <Expandable>
<Image Path="#Crow.Images.Icons.crow.svg"/>
</Expandable>
- <Popper Background="DimGray" >
+ <Popper>
<Border Fit="True" Background="DimGray" CornerRadius="0" BorderWidth="1">
<Image Path="#Crow.Images.Icons.crow.svg" Width="100" Height="100" Margin="10"
MouseEnter="{Background=LightGray}"