<?xml version="1.0"?>
-<Label Text="{}" Focusable="true" Fit="true" Margin="0"
+<Label Text="{}" Fit="true" Margin="0"
MouseEnter="{Background=SteelBlue}"
MouseLeave="{Background=Transparent}"
/>
<?xml version="1.0"?>
<Border BorderWidth="1" Foreground="LightGray" Width="{../TemplatedWidth}" Height="{../TemplatedHeight}">
- <GenericStack Orientation="{../../Orientation}" Width="{../../TemplatedWidth}" Height="{../../TemplatedHeight}">
- <Button MouseRepeat="true" Width="12" Height="8" MouseClick="../../../onScrollBack"
+ <GenericStack Orientation="{../../Orientation}" Spacing="0"
+ Width="{../../TemplatedWidth}" Height="{../../TemplatedHeight}">
+ <Button MouseRepeat="true" Width="12" Height="12" MouseClick="../../../onScrollBack"
Template="#Crow.Templates.ArrowButTemplate.crow">
<Image Margin="1" Path="#Crow.Images.Icons.updown.svg" SvgSub="up"/>
</Button>
Background="hgradient|0:DimGray|0,1:Gray|0,95:Gray|1:White"
Width="{../../../TemplatedWidth}" Height="{../../../TemplatedHeight}" Orientation="{../../../Orientation}"
ValueChanged="../../../onSliderValueChange"/>
- <Button MouseRepeat="true" Width="12" Height="8" MouseClick="../../../onScrollForth"
+ <Button MouseRepeat="true" Width="12" Height="12" MouseClick="../../../onScrollForth"
Template="#Crow.Templates.ArrowButTemplate.crow">
<Image Margin="1" Path="#Crow.Images.Icons.updown.svg" SvgSub="down"/>
</Button>
return;
intValue = Convert.ToInt32(e.NewValue);
}
+ IList<Color> testList = null;
public IList<Color> TestList {
- get { return Color.ColorDic; }
+ set{
+ testList = value;
+ NotifyValueChanged ("TestList", testList);
+ }
+ get { return testList; }
}
+ void OnClear (object sender, MouseButtonEventArgs e) => TestList = null;
+
+ void OnLoadList (object sender, MouseButtonEventArgs e) => TestList = Color.ColorDic.ToList();
protected override void OnLoad (EventArgs e)
{
{
Console.WriteLine ("button clicked:" + send.ToString());
}
+
[STAThread]
static void Main ()
{
<?xml version="1.0"?>
<Border BorderWidth="2" Fit="true">
<VerticalStack Fit="true" Margin="5">
- <ListBox Data="{TestList}" Background="0,5;0,5;0,5;0,8"
+ <ListBox Data="{TestList}" Background="0,5;0,5;0,5;0,7"
HorizontalAlignment="Center" Width="-1" Height="350" Margin="5"
ItemTemplate="#Tests.Interfaces.colorItem.crow">
<Template>
Width="250" Height="550" >
<VerticalStack Name="contentVSStack" Margin="10" Spacing="10" Background="0,4;0,4;0,4;0,4">
<Slider Name="slider" Height="12" Width="0" CornerRadius="3"/>
- <GroupBox Caption="test" Height="-1" Width="-1" Margin="5">
- <VerticalStack Height="-1" Width="0" >
- <RadioButton Caption="Radio 1" Background="Red" />
- <RadioButton Caption="Radio 2" IsChecked="true" />
- <RadioButton Caption="Radio 3" />
- </VerticalStack>
+ <GroupBox Caption="test" Height="-1" Width="0" Margin="5">
+ <GroupBox Caption="test2" Height="-1" Width="0" Margin="5">
+ <VerticalStack Height="-1" Width="0" >
+ <RadioButton Caption="Radio 1" Background="Red" Width="0"/>
+ <RadioButton Caption="Radio 2" IsChecked="true" />
+ <RadioButton Caption="Radio 3" />
+ </VerticalStack>
+ </GroupBox>
</GroupBox>
<HorizontalStack Width="0" Height="-1" Margin="10" CornerRadius="5"
Background="vgradient|0:White|0,1:SteelBlue|0,9:SteelBlue|1:Transparent">
</VerticalStack>
</Container>
</Border>
+ <Border Fit="true" CornerRadius="5" BorderWidth="1">
+ <Container Name="MainGrp" Background="0,5;0,5;0,5;0,4" Fit="true" Margin="10">
+ <VerticalStack Fit="true" Spacing="10" >
+ <HorizontalStack Fit="true">
+ <Label Text="Update:" Width="50" TextAlignment="RightCenter"/>
+ <Label Text="{update}" Font="droid,12" Background="vgradient|0:AoEnglish|1:Black"/>
+ </HorizontalStack>
+ <HorizontalStack Fit="true">
+ <Label Text="Layouting:" Width="50" TextAlignment="RightCenter"/>
+ <Label Text="{layouting}" Font="droid,12" Background="vgradient|0:AoEnglish|1:Black"/>
+ </HorizontalStack>
+ </VerticalStack>
+ </Container>
+ </Border>
<!-- <Checkbox Height="-1" Width="-1" Background="Red" Margin="0" VerticalAlignment="Center" HorizontalAlignment="Right"/>-->
</VerticalStack>
</Window>