From a5c1c34ae4976d1ecaca00ce859b9d1a68026ce6 Mon Sep 17 00:00:00 2001 From: grokys Date: Wed, 11 Dec 2013 22:52:06 +0100 Subject: [PATCH] Use correct owner! --- Perspex.Windows/Window.cs | 1 + Perspex/Controls/TextBlock.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Perspex.Windows/Window.cs b/Perspex.Windows/Window.cs index d169582299..cc9f27160c 100644 --- a/Perspex.Windows/Window.cs +++ b/Perspex.Windows/Window.cs @@ -23,6 +23,7 @@ this.LayoutManager = new LayoutManager(); this.renderer = new Renderer(this.Handle, (int)clientSize.Width, (int)clientSize.Height); + // TODO: Do this by pushing to Dispatcher rather than right away! this.LayoutManager.LayoutNeeded.Subscribe(x => { this.LayoutManager.ExecuteLayoutPass(); diff --git a/Perspex/Controls/TextBlock.cs b/Perspex/Controls/TextBlock.cs index 943ae048cd..d67cd5d067 100644 --- a/Perspex/Controls/TextBlock.cs +++ b/Perspex/Controls/TextBlock.cs @@ -8,7 +8,7 @@ Border.BackgroundProperty.AddOwner(); public static readonly PerspexProperty ForegroundProperty = - PerspexProperty.Register( + PerspexProperty.Register( "Foreground", defaultValue: new SolidColorBrush(0xff000000), inherits: true);