aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/GraphicObjects/TemplatedContainer.cs
diff options
context:
space:
mode:
authorjpbruyere <jp.bruyere@hotmail.com>2015-09-21 08:30:08 +0200
committerjpbruyere <jp.bruyere@hotmail.com>2015-09-21 08:30:09 +0200
commitf662d49464e2b8326522aad67761ffdcb8a5e5f6 (patch)
treef767f75977721299da029518ec938bfa0366597b /src/GraphicObjects/TemplatedContainer.cs
parentdb3a636d9c4de1e4ee1d4e79e6dfeae738daac8d (diff)
* BmpPicture.cs:
allow unscalled picture * GraphicObject.cs: background image path, problems with repaint of background * Group.cs: background image * HorizontalStack.cs: clean code * Label.cs: debug * TemplatedContainer.cs: fix dataSource==null to clear binding successfully * Window.cs: resizable or not * OpenTKGameWindow.cs: RenderCustomTextureOnUIQuad (usefull for cached content) * Picture.cs: Scale boolean * ListBox.cs: remove debug loading time
Diffstat (limited to 'src/GraphicObjects/TemplatedContainer.cs')
-rw-r--r--src/GraphicObjects/TemplatedContainer.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/GraphicObjects/TemplatedContainer.cs b/src/GraphicObjects/TemplatedContainer.cs
index 56217419..dcea97d7 100644
--- a/src/GraphicObjects/TemplatedContainer.cs
+++ b/src/GraphicObjects/TemplatedContainer.cs
@@ -35,8 +35,11 @@ namespace go
#region GraphicObject overrides
public override void ClearBinding ()
{
- if (Content != null)
+ if (Content != null) {
+ //fix datasource = null to clear bindings, but it's illogic
+ Content.DataSource = this.DataSource;
Content.ClearBinding ();
+ }
base.ClearBinding ();
}