<ListBox Data="{Directories}" Width="-1" Height="0"
Background="0,5;0,5;0,5;0,5"
SelectedItemChanged="OnSelectedItemChanged"
- Template="#go.Templates.ScrollingListBox.goml"
- ItemTemplate="#go.Templates.tmpDirItem.goml" >
+ Template="#Crow.Templates.ScrollingListBox.goml"
+ ItemTemplate="#Crow.Templates.tmpDirItem.goml" >
</ListBox>
<ListBox Data="{Files}" Width="0" Height="0"
Background="0,5;0,5;0,5;0,5"
SelectedItemChanged="onFileListItemChanged"
- Template="#go.Templates.ScrollingListBox.goml"
- ItemTemplate="#go.Templates.imgItemTemplate.goml">
+ Template="#Crow.Templates.ScrollingListBox.goml"
+ ItemTemplate="#Crow.Templates.imgItemTemplate.goml">
</ListBox>
</HorizontalStack>
<HorizontalStack Fit="true" HorizontalAlignment="Right">
<Border BorderWidth="1" BorderColor="LightGray" Width="{../TemplatedWidth}" Height="{../TemplatedHeight}">\r
<GenericStack Orientation="{../../Orientation}" Width="{../../TemplatedWidth}" Height="{../../TemplatedHeight}">\r
<Button Width="12" Height="12" MouseClick="../../../onScrollBack">\r
- <Image Margin="1" Path="#go.Images.Icons.updown.svg" SvgSub="up"/>\r
+ <Image Margin="1" Path="#Crow.Images.Icons.updown.svg" SvgSub="up"/>\r
</Button>\r
<Slider Name="Slider" Value="{../../../Scroll}" Maximum="{../../../MaximumScroll}" \r
Width="{../../../TemplatedWidth}" Height="{../../../TemplatedHeight}" Orientation="{../../../Orientation}"\r
ValueChanged="../../../onSliderValueChange"/>\r
<Button Width="12" Height="12" MouseClick="../../../onScrollForth">\r
- <Image Margin="1" Path="#go.Images.Icons.updown.svg" SvgSub="down"/>\r
+ <Image Margin="1" Path="#Crow.Images.Icons.updown.svg" SvgSub="down"/>\r
</Button>\r
</GenericStack>\r
</Border>
\ No newline at end of file
Text="{../../../Value}" Margin="1" TextAlignment="RightCenter"/>
<VerticalStack Width="-1" Height="{../../../TemplatedHeight}" Spacing="1" >
<Button Width="12" Height="8" MouseClick="../../../../onUp">
- <Image Margin="1" Path="#go.Images.Icons.updown.svg" SvgSub="up"/>
+ <Image Margin="1" Path="#Crow.Images.Icons.updown.svg" SvgSub="up"/>
</Button>
<Button Width="12" Height="8" MouseClick="../../../../onDown">
- <Image Margin="1" Path="#go.Images.Icons.updown.svg" SvgSub="down"/>
+ <Image Margin="1" Path="#Crow .Images.Icons.updown.svg" SvgSub="down"/>
</Button>
</VerticalStack>
</HorizontalStack>
<Label Foreground="White" Width="{../../../../../TemplatedWidth}" Margin="1" TextAlignment="Center" Text="{../../../../../Title}" />\r
<Border CornerRadius="6" BorderWidth="1" BorderColor="Transparent" Height="12" Width="12"\r
MouseEnter="{BorderColor=White}" MouseLeave="{BorderColor=Transparent}">\r
- <Image Focusable="true" Name="Image" Margin="0" Width="0" Height="0" Path="#go.Images.Icons.exit2.svg"\r
+ <Image Focusable="true" Name="Image" Margin="0" Width="0" Height="0" Path="#Crow.Images.Icons.exit2.svg"\r
MouseClick="../../../../../../butQuitPress"/>\r
</Border>\r
<GraphicObject Width="5"/>\r
int frameCpt = 0;\r
int idx = 0;\r
string[] testFiles = {\r
+ "testWindow2.goml",\r
// "testCombobox.goml",\r
"testWindow3.goml",\r
+ "testWindow.goml",\r
+ "testGroupBox.goml",\r
"testExpandable.goml",\r
- "testPopper.goml",\r
"testCheckbox.goml",\r
+ "testPopper.goml",\r
"fps.goml",\r
"testLabel.goml",\r
"testAll.goml",\r
- "testWindow.goml",\r
- "testWindow2.goml",\r
// "testSpinner.goml",\r
"test4.goml",\r
"testRadioButton2.goml",\r
"testBorder.goml",\r
"testRadioButton.goml",\r
"testSpinner.goml",\r
- "testGroupBox.goml",\r
"testMsgBox.goml",\r
"testGrid.goml",\r
"testMeter.goml",\r
</Button>\r
<Popper Width="100">\r
<Border Margin="10" Fit="True" Background="ArmyGreen">\r
- <Image Fit="true" Path="#go.Images.Icons.tetra.png"/>\r
+ <Image Fit="true" Path="#Crow.Images.Icons.tetra.png"/>\r
</Border>\r
</Popper>\r
<Expandable Name="expander" Width="150" Height="-1">\r
<?xml version="1.0"?>\r
-<Expandable Title="Test expandable" Width="-1" Background="DimGray">\r
+<Expandable Title="Test expandable" Background="DimGray">\r
<VerticalStack Width="-1" Height="-1">\r
- <Checkbox Name="chk1"/>\r
+ <Checkbox Name="chk1" Background="Red"/>\r
<Checkbox Name="chk2" IsChecked="true"/>\r
<Checkbox Name="chk3"/>\r
<Checkbox Name="chk4"/>\r
- <HorizontalStack Fit="true" Margin="20">\r
- <Label Name="captionFps" Text="Fps:" Width="50" TextAlignment="RightCenter"/>\r
- <Label Name="valueFps" Text="{fps}" Font="droid , 12" Width="50" TextAlignment="Center" Background="AoEnglish"/>\r
+ <HorizontalStack Fit="true" Margin="2" Background="Blue">\r
+ <Label Name="captionFps" Text="Fps:" Width="30" TextAlignment="RightCenter"/>\r
+ <Label Name="valueFps" Text="{fps}" Font="droid , 12" Width="-1" TextAlignment="Center" Background="AoEnglish"/>\r
</HorizontalStack>\r
</VerticalStack>\r
</Expandable>\r
<Border Fit="True" Background="ArmyGreen">\r
<!-- <Image Fit="true" Path="#go.Images.Icons.tetra.png" Margin="10"/>-->\r
<VerticalStack Fit="true" Margin="10" Background="CornflowerBlue">\r
- <Checkbox Name="chk1"/>\r
+ <Checkbox Name="chk1" Background="Red"/>\r
<Checkbox Name="chk2" IsChecked="true"/>\r
<Checkbox Name="chk3"/>\r
<Checkbox Name="chk4"/>\r
<?xml version="1.0"?>\r
-<Window Name="window1" Left="10" Top="10" Title="Test window" \r
+<Window Left="10" Top="10" Title="Test window" \r
Width="250" Height="300" >\r
<VerticalStack Name="contentVSStack" Margin="10" Spacing="10">\r
<Slider Name="slider" Height="10" Width="0"/>\r
--- /dev/null
+<?xml version="1.0"?>\r
+<!--<Group>-->\r
+<Window Name="window1" Left="10" Top="10" Title="Test window" \r
+ Width="250" Height="300" >\r
+ <VerticalStack Name="contentVSStack" Margin="10" Spacing="10">\r
+ <Slider Name="slider" Height="10" Width="0"/>\r
+\r
+ <HorizontalStack Width="0" Height="-1" Margin="10" Background="BlueCrayola">\r
+ <Checkbox Height="-1" Width="80"/>\r
+ <GraphicObject Width="0"/>\r
+ <Checkbox Height="-1" Width="80"/>\r
+ </HorizontalStack>\r
+ <Groupbox Text="test" Height="-1" Width="-1" Margin="5">\r
+ <VerticalStack Height="-1" Width="0" >\r
+ <RadioButton Caption="Radio 1" Background="Red" />\r
+ <RadioButton Caption="Radio 2" IsChecked="true" />\r
+ <RadioButton Caption="Radio 3" />\r
+ </VerticalStack>\r
+ </Groupbox>\r
+<!-- <Checkbox Height="-1" Width="-1" Background="Red" Margin="0" VerticalAlignment="Center" HorizontalAlignment="Right"/>-->\r
+ </VerticalStack>\r
+</Window>\r
+<!--</Group>-->\r
+<!-- <Label Text="{fps}" Background="DarkRed"/>\r
+ <Label Text="{fpsMin}" />\r
+ <Label Text="{fpsMax}" />-->
\ No newline at end of file
<Label Foreground="White" Width="{../../../../../TemplatedWidth}" Margin="1" TextAlignment="Center" Text="{../../../../../Title}" />\r
<Border CornerRadius="6" BorderWidth="1" BorderColor="Transparent" Height="12" Width="12"\r
MouseEnter="{BorderColor=White}" MouseLeave="{BorderColor=Transparent}">\r
- <Image Focusable="true" Name="Image" Margin="0" Width="0" Height="0" Path="#go.Images.Icons.exit2.svg"\r
+ <Image Focusable="true" Name="Image" Margin="0" Width="0" Height="0" Path="#Crow.Images.Icons.exit2.svg"\r
MouseClick="../../../../../../butQuitPress"/>\r
</Border>\r
<GraphicObject Width="5"/>\r
<?xml version="1.0"?>\r
-<Window Name="window1" Left="10" Top="10" Title="Test window" Width="200" Height="200" Background="0,5;0,5;0,5;0,8" \r
+<Window Left="10" Top="10" Title="Test window" Width="200" Height="200" Background="0,5;0,5;0,5;0,8" \r
Focusable="True" CornerRadius="20" MinimumSize="100;100" MaximumSize="500;500">\r
<Template>\r
<Container Margin="20" Name="Content" Height="{../TemplatedHeight}" Width="{../TemplatedWidth}" Background="0,5;0,5;0,5;0,5"/>\r
</Template>\r
- <Group Background="Green">\r
-<!-- <GraphicObject Height="50" Width="50" Background="Red" Margin="5"/>-->\r
- <Scrollbar Orientation="Vertical" Height="0" Width="10" Background="Blue" Margin="0" HorizontalAlignment="Right"/>\r
- </Group>\r
+<!-- <Group Background="Green">-->\r
+ <GraphicObject Height="50" Width="50" Background="Red" Margin="5"/>\r
+<!-- <Scrollbar Orientation="Vertical" Height="0" Width="10" Background="Blue" Margin="0" HorizontalAlignment="Right"/>-->\r
+<!-- </Group>-->\r
</Window>\r
<HorizontalStack Width="0" Height="-1" Focusable="true" \r
MouseEnter="{Background=Red}"\r
MouseLeave="{Background=Transparent}">\r
- <Image Width="8" Height="8" Path="#go.Images.Icons.member.svg" SvgSub="{GetIcon}"/>\r
+ <Image Width="8" Height="8" Path="#Crow.Images.Icons.member.svg" SvgSub="{GetIcon}"/>\r
<Label Text="{Name}" Width="0" Height="-1" Margin="2"/>\r
<Label Text="{MemberType}" Width="-1" Height="-1" Margin="0"/>\r
</HorizontalStack>\r
<OutputType>Exe</OutputType>
<RootNamespace>Tests</RootNamespace>
<AssemblyName>Tests</AssemblyName>
- <StartupObject>test.GOLIBTest_Listbox</StartupObject>
+ <StartupObject>test.GOLIBTests</StartupObject>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<OutputPath>..\bin\$(configuration)</OutputPath>
<IntermediateOutputPath>obj\$(configuration)</IntermediateOutputPath>
{\r
public class GenericStack : Group\r
{\r
+ internal class Page\r
+ {\r
+ public byte[] bmp;\r
+ public int Size;\r
+ }\r
+\r
#region CTOR\r
public GenericStack()\r
: base()\r
foreach (GraphicObject c in Children.Where(ch=>ch.Visible)) {\r
c.Slot.X = d;\r
d += c.Slot.Width + Spacing;\r
- //c.RegisterForLayouting ((int)LayoutingType.Y);\r
+ c.RegisterForLayouting ((int)LayoutingType.Y);\r
}\r
} else {\r
foreach (GraphicObject c in Children.Where(ch=>ch.Visible)) {\r
c.Slot.Y = d;\r
d += c.Slot.Height + Spacing;\r
- //c.RegisterForLayouting ((int)LayoutingType.X);\r
+ c.RegisterForLayouting ((int)LayoutingType.X);\r
}\r
}\r
}\r
if (!xr.IsStartElement ())
continue;
- if (xr.Name == "Template")
- continue;
+
+ if (xr.Name == "Template"){
+ xr.Skip ();
+ if (!xr.IsStartElement ())
+ continue;
+ }
Type t = Type.GetType ("Crow." + xr.Name);
GraphicObject go = (GraphicObject)Activator.CreateInstance (t);
Direction currentDirection = Direction.None;
#region CTOR
- public Window () : base() {}
+ public Window () : base() {
+
+ }
#endregion
#region GraphicObject overrides
Debug.WriteLine ("Layouting => " + this.ToString ());
#endif
try {
+ if (GraphicObject.Parent == null){
+ Debug.WriteLine("ERROR: processLayouting, no parent for: " + GraphicObject.ToString());
+ return;
+ }
GraphicObject.UpdateLayout (LayoutType);
} catch (Exception ex) {
Debug.WriteLine ("Layouting error: " + ex.ToString ());