]> O.S.I.I.S - jp/crow.git/commitdiff
debug combobox
authorjpbruyere <jp.bruyere@hotmail.com>
Sun, 28 Feb 2016 11:32:26 +0000 (12:32 +0100)
committerjpbruyere <jp.bruyere@hotmail.com>
Sun, 28 Feb 2016 11:32:26 +0000 (12:32 +0100)
Templates/ComboBox.goml
Tests/Interfaces/testCombobox.goml
src/GraphicObjects/ListBox.cs

index 7a735307b16f371a47172804f801eafef9530420..e512ef2c9ae83e028ea7beb720da59adf65eaa92 100755 (executable)
@@ -1,19 +1,19 @@
 <?xml version="1.0"?>
 <Popper Name="popper" PopDirection="Bottom" Height="{../HeightPolicy}" Width="{../WidthPolicy}">
        <Template>
-               <Border CornerRadius="0" Foreground="LightGray" Height="{../HeightPolicy}" Width="{../WidthPolicy}">
-                       <HorizontalStack Margin="1" Spacing="1" Height="{../../HeightPolicy}" Width="{../../WidthPolicy}">
+               <Border CornerRadius="0" Foreground="LightGray" Height="{../../HeightPolicy}" Width="{../../WidthPolicy}">
+                       <HorizontalStack Margin="1" Spacing="1" Height="{../../../HeightPolicy}" Width="{../../../WidthPolicy}">
                                <TextBox MinimumSize="80;10" Margin="1" Foreground="Black" Background="White"
-                                       Text="{../../../../SelectedItem}" Focusable="true"
+                                       Text="{../../../../SelectedItem}"
                                        Height="{../../../../HeightPolicy}" Width="{../../../../WidthPolicy}"/>
-                               <Button Width="14" Height="14" MouseClick="../../../onMouseClick"
+                               <Button Width="14" Height="14" Focusable="false"
                                        Template="#Crow.Templates.ArrowButTemplate.crow">
                                        <Image Margin="0"  Path="#Crow.Images.Icons.updown.svg" SvgSub="down"/>
                                </Button>
                        </HorizontalStack>
                </Border>
        </Template>
-       <Border Background="DimGray" BorderWidth="1" Margin="1" MinimumSize="100;100" MaximumSize="200;300" Height="-1" Width="-1">
+       <Border Background="DimGray" BorderWidth="1" Margin="1" MinimumSize="100;100" MaximumSize="200;400" Height="-1" Width="-1">
                <Scroller  Name="scroller1" Margin="1" VerticalScrolling="true"
                        Height="200" Width="-1"
                        ValueChanged="../../../_scroller_ValueChanged">
index d12a333dc909fa386782bdd398d97a9e76c3dab5..8e0b16ad43738a7919a60cc920219b6609a23753 100755 (executable)
@@ -1,5 +1,5 @@
 <?xml version="1.0"?>
 <VerticalStack>
-       <ComboBox Width="120" Data="{TestList}" SelectedItem="Blue"
+       <ComboBox Width="120" Data="{TestList}" SelectedIndex="0"
                ItemTemplate="#Tests.Interfaces.colorItem.crow"/>
 </VerticalStack>
\ No newline at end of file
index 0d80479ae8df81dbc16b02d5bd5622e1e8306945..0a9c0c77a495f157966e9490c6d5fb78223bcab0 100644 (file)
@@ -93,7 +93,7 @@ namespace Crow
                        }
                }
                public object SelectedItem{
-                       get { return data == null ? null : _selectedIndex < 0 ? null : data[_selectedIndex]; }
+                       get { return data == null ? "" : _selectedIndex < 0 ? "" : data[_selectedIndex]; }
                }
                [XmlAttributeAttribute]//[DefaultValue(null)]
                public IList Data {