<?xml version="1.0"?>\r
-<!--<HorizontalStack Spacing="1" Height="-1" Width="0">\r
- <Image Margin="2" Width="14" Height="14" Path="{Image}" SvgSub="{SvgSub2}"/>\r
- <Label Text="{Caption}" Width="0"/>\r
-</HorizontalStack>-->\r
<HorizontalStack Spacing="1" Height="{TemplatedHeight}" Width="{TemplatedWidth}">\r
<Image Margin="2" Width="14" Height="14" Path="{Image}" SvgSub="{SvgSub}"/>\r
<Label Text="{Caption}" Height="{TemplatedHeight}" Width="{TemplatedWidth}"/>\r
int frameCpt = 0;\r
int idx = 0;\r
string[] testFiles = {\r
+ "testGroupBox.goml",\r
+ "testBorder.goml",\r
"testCheckbox.goml",\r
"testWindow.goml",\r
"test0.goml",\r
<?xml version="1.0"?>\r
-<GroupBox Width="-1" Height="-1" Background="Red">\r
- <VerticalStack Margin="0">\r
- <Checkbox />\r
-\r
- </VerticalStack>\r
-</GroupBox>\r
+<Container Fit="true" Margin="5" Background="Blue">\r
+<Group Fit="true" Margin="5" Background="Green">\r
+<Border Fit="true" Background="Red" Margin="10">\r
+ <Checkbox/>\r
+</Border>\r
+</Group>\r
+</Container>\r
<?xml version="1.0"?>\r
-<Expandable Title="Test expandable" Width="150" Background="DimGray">\r
- <VerticalStack Width="100" Height="-1">\r
+<Expandable Title="Test expandable" Width="-1" Background="DimGray">\r
+ <VerticalStack Width="-1" Height="-1">\r
<Checkbox Name="chk1"/>\r
<Checkbox Name="chk2" IsChecked="true"/>\r
<Checkbox Name="chk3"/>\r
<?xml version="1.0"?>\r
-<Expandable Title="Test expandable" Width="150" Background="DimGray">\r
- <VerticalStack Width="100" Height="-1">\r
- <Checkbox Name="chk1"/>\r
- <Checkbox Name="chk2" IsChecked="true"/>\r
- <Checkbox Name="chk3"/>\r
- <Checkbox Name="chk4"/>\r
- </VerticalStack> \r
-</Expandable>\r
+<Groupbox Width="-1" Height="-1" Background="Red">\r
+ <VerticalStack Margin="0">\r
+ <Checkbox />\r
+\r
+ </VerticalStack>\r
+</Groupbox>\r
<None Include="Interfaces\testWindow2.goml">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</None>
+ <None Include="Interfaces\testGroupBox.goml">
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ </None>
+ <None Include="Interfaces\testBorder.goml">
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ </None>
</ItemGroup>
<ItemGroup>
<Folder Include="Interfaces\" />
}
#endregion
- #region implemented abstract members of TemplatedControl
-
- protected override void loadTemplate (GraphicObject template = null)
- {
- base.loadTemplate (template);
- }
-
- #endregion
-
#region GraphicObject Overrides
protected override void onDraw (Context gr)
{
{\r
if (Parent==null)\r
return;\r
+\r
+ //Debug.WriteLine ("Layout change: " + this.ToString () + ":" + LastSlots.ToString() + "=>" + Slot.ToString ());\r
\r
switch (layoutType) {\r
case LayoutingType.Width: \r
using (ImageSurface draw =\r
new ImageSurface(bmp, Format.Argb32, Slot.Width, Slot.Height, stride)) {\r
using (Context gr = new Context (draw)) {\r
- gr.Antialias = Antialias.Gray;\r
+ gr.Antialias = Antialias.Subpixel;\r
onDraw (gr);\r
}\r
draw.Flush ();\r
{
public abstract class TemplatedContainer : TemplatedControl
{
- [XmlIgnore]
- public abstract GraphicObject Content{ get; set;}
+ [XmlIgnore]public abstract GraphicObject Content{ get; set;}
protected override void loadTemplate (GraphicObject template)
{
base.loadTemplate (template);
}
+
public TemplatedContainer () : base()
{
}
}else
this.SetChild (template);
}
-
-
-
+
#region IXmlSerializable
public override System.Xml.Schema.XmlSchema GetSchema(){ return null; }