From 1fa4c20a91cca93d18caf769d60bdff1688986bb Mon Sep 17 00:00:00 2001 From: NaBian <836904362@qq.com> Date: Sun, 10 May 2020 22:54:32 +0800 Subject: [PATCH] fixed #274 --- src/Shared/HandyControl_Shared/Controls/Other/Badge.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Shared/HandyControl_Shared/Controls/Other/Badge.cs b/src/Shared/HandyControl_Shared/Controls/Other/Badge.cs index b7268aa9..d9ae22d0 100644 --- a/src/Shared/HandyControl_Shared/Controls/Other/Badge.cs +++ b/src/Shared/HandyControl_Shared/Controls/Other/Badge.cs @@ -1,6 +1,7 @@ using System; using System.Windows; using System.Windows.Controls; +using System.Windows.Media; using HandyControl.Data; namespace HandyControl.Controls @@ -87,5 +88,7 @@ namespace HandyControl.Controls get => (bool) GetValue(ShowBadgeProperty); set => SetValue(ShowBadgeProperty, value); } + + protected override Geometry GetLayoutClip(Size layoutSlotSize) => null; } } \ No newline at end of file