Browse Source

Attach styles in reverse order.

pull/4/head
grokys 12 years ago
parent
commit
83fbcccae1
  1. 12
      Perspex/Controls/Control.cs

12
Perspex/Controls/Control.cs

@ -216,17 +216,17 @@ namespace Perspex.Controls
{
Contract.Requires<ArgumentNullException>(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<Control, Control> values)

Loading…
Cancel
Save