From 991b7058af41a1cab5113b4f3d7543594bec945f Mon Sep 17 00:00:00 2001 From: Steven Kirk Date: Wed, 30 Sep 2015 19:02:34 +0200 Subject: [PATCH] Clip Panel content to bounds. --- src/Perspex.Controls/Panel.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Perspex.Controls/Panel.cs b/src/Perspex.Controls/Panel.cs index 76bac0c51f..5e0c83982b 100644 --- a/src/Perspex.Controls/Panel.cs +++ b/src/Perspex.Controls/Panel.cs @@ -29,6 +29,14 @@ namespace Perspex.Controls private ILogical _childLogicalParent; + /// + /// Initializes static members of the class. + /// + static Panel() + { + ClipToBoundsProperty.OverrideDefaultValue(true); + } + /// /// Initializes a new instance of the class. ///