diff --git a/Perspex/Controls/Control.cs b/Perspex/Controls/Control.cs index fe04b8f254..200f29c0f5 100644 --- a/Perspex/Controls/Control.cs +++ b/Perspex/Controls/Control.cs @@ -216,17 +216,17 @@ namespace Perspex.Controls { Contract.Requires(control != null); - foreach (Style style in control.Styles) - { - style.Attach(this); - } - Control parent = control.Parent; - + if (parent != null) { this.AttachStyles(parent); } + + foreach (Style style in control.Styles) + { + style.Attach(this); + } } private void ParentChanged(Tuple values)