aboutsummaryrefslogtreecommitdiffstatsci
path: root/Tests/HelloWorld.cs
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2018-01-30 00:28:05 +0100
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2018-01-30 00:28:05 +0100
commitc29275576f75534c9fd109b3d3717ab52ec8415b (patch)
tree2bb12851411af33988a43ea9a35bfe4ee34eba83 /Tests/HelloWorld.cs
parente3c509d4a9a27f663a3a95ab697bfdb2e880172d (diff)
- test with both parameterless ctor and with iface param ctorInCodeInstatiation
- CurrentInterface as field
Diffstat (limited to 'Tests/HelloWorld.cs')
-rw-r--r--Tests/HelloWorld.cs13
1 files changed, 11 insertions, 2 deletions
diff --git a/Tests/HelloWorld.cs b/Tests/HelloWorld.cs
index ca1560ef..ea37a142 100644
--- a/Tests/HelloWorld.cs
+++ b/Tests/HelloWorld.cs
@@ -40,9 +40,18 @@ namespace Tests
{
base.OnLoad (e);
+ Container c = (Container) Instantiator.CreateFromImlFragment (@"<Border BorderWidth='1' Background='Red' Foreground='White' Width='50%'></Border>").CreateInstance (CurrentInterface);
+ GraphicObject obj = new GraphicObject (this.CurrentInterface)
+ {
+ Background = Color.AirForceBlueRaf,
+ Margin = 10,
+ Width = 100,
+ Height = 100
+ };
+ c.SetChild (obj);
+ AddWidget (c);
- AddWidget(Instantiator.CreateFromImlFragment (@"<Border Fit='true' BorderWidth='2' BorderStyle='Normal' MouseDown='{BorderStyle=Sunken}' MouseUp='{BorderStyle=Raised}' MouseEnter='{BorderStyle=Raised}' MouseLeave='{BorderStyle=Normal}'><Label Margin='50'/></Border>").CreateInstance (CurrentInterface));
- //Load(@"Interfaces/GraphicObject/0.crow");
+ //Load(@"Interfaces/GraphicObject/2.crow");
}
[STAThread]