using go;\r
using System.Threading;\r
using System.Collections.Generic;\r
+using System.IO;\r
+using System.Linq;\r
\r
\r
namespace test\r
// new ClsItem("string 2"),\r
// new ClsItem("string 3")\r
// });\r
- public List<string> TestList = new List<string>(new string[] \r
- {\r
- "string 1",\r
- "string 2",\r
-// "string 3",\r
-// "string 4",\r
-// "string 5",\r
-// "string 6",\r
-// "string 7",\r
-// "string 8",\r
- "string 9"\r
- }); \r
+ public List<string> TestList;\r
// string[] TestList = new string[] \r
// {\r
// "string 1",\r
protected override void OnLoad (EventArgs e)\r
{\r
base.OnLoad (e);\r
+\r
+ TestList = Directory.GetFileSystemEntries("/mnt/data/MagicCardDataBase/", "*.txt",SearchOption.AllDirectories).ToList();\r
LoadInterface("Interfaces/test_Listbox.goml");\r
\r
// TestList [1].Field = "test string";\r
<?xml version="1.0"?>\r
-<ListBox Data="{TestList}">\r
+<!--<ListBox Data="{TestList}" Focusable="true"/>-->\r
+<ListBox Data="{TestList}" Background="0,5;0,5;0,5;0,5"\r
+ HorizontalAlignment="Left">\r
+ <Template>\r
+ <Border BorderWidth="1" Margin="1" MinimumSize="0;100" >\r
+ <HorizontalStack>\r
+ <Scroller Name="scroller1" Margin="1" VerticalScrolling="true" \r
+ ScrollY="{../scrollbar1.Scroll}">\r
+ <VerticalStack Height="-1" Name="List" Margin="0" VerticalAlignment="Top"/>\r
+ </Scroller>\r
+ <Scrollbar Name="scrollbar1" Scroll="{../scroller1.ScrollY}" MaximumScroll="{../scroller1.MaximumScroll}"\r
+ Orientation="Vertical" Width="10" />\r
+ </HorizontalStack>\r
+ </Border>\r
+ </Template>\r
</ListBox>\r
+\r
<OutputType>Exe</OutputType>
<RootNamespace>Tests</RootNamespace>
<AssemblyName>Tests</AssemblyName>
- <StartupObject>test.GOLIBTest_4</StartupObject>
+ <StartupObject>test.GOLIBTest_Listbox</StartupObject>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<OutputPath>..\bin\$(configuration)</OutputPath>
<IntermediateOutputPath>obj\$(configuration)</IntermediateOutputPath>