Browse Source

Display ContentControl background.

pull/100/head
Steven Kirk 11 years ago
parent
commit
eb2948d2ea
  1. 10
      src/Perspex.Themes.Default/ContentControlStyle.cs

10
src/Perspex.Themes.Default/ContentControlStyle.cs

@ -41,10 +41,14 @@ namespace Perspex.Themes.Default
/// <returns>The root of the instantiated template.</returns> /// <returns>The root of the instantiated template.</returns>
public static Control Template(ContentControl control) public static Control Template(ContentControl control)
{ {
return new ContentPresenter return new Border
{ {
Name = "contentPresenter", [~Border.BackgroundProperty] = control[~ContentControl.BackgroundProperty],
[~ContentPresenter.ContentProperty] = control[~ContentControl.ContentProperty], Child = new ContentPresenter
{
Name = "contentPresenter",
[~ContentPresenter.ContentProperty] = control[~ContentControl.ContentProperty],
}
}; };
} }
} }

Loading…
Cancel
Save