From 67ff6c474ffa0953f49f1fad2aa4d1bc1d7b54db Mon Sep 17 00:00:00 2001 From: Steven Kirk Date: Sun, 17 Apr 2016 14:26:54 +0200 Subject: [PATCH] Removed tabs and moved static ctor. --- src/Perspex.Controls/Image.cs | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/Perspex.Controls/Image.cs b/src/Perspex.Controls/Image.cs index b9af59a951..c829f3e83a 100644 --- a/src/Perspex.Controls/Image.cs +++ b/src/Perspex.Controls/Image.cs @@ -23,7 +23,13 @@ namespace Perspex.Controls /// public static readonly StyledProperty StretchProperty = PerspexProperty.Register(nameof(Stretch), Stretch.Uniform); - + + static Image() + { + AffectsRender(SourceProperty); + AffectsRender(StretchProperty); + } + /// /// Gets or sets the bitmap image that will be displayed. /// @@ -42,17 +48,11 @@ namespace Perspex.Controls set { SetValue(StretchProperty, value); } } - static Image() - { - AffectsRender(SourceProperty); - AffectsRender(StretchProperty); - } - - /// - /// Renders the control. - /// - /// The drawing context. - public override void Render(DrawingContext context) + /// + /// Renders the control. + /// + /// The drawing context. + public override void Render(DrawingContext context) { var source = Source;