Permalink
Browse files

CornerRadius property also for ToggleButton

  • Loading branch information...
1 parent d4ff9da commit cd31273b5005d950b0725684ecf193f3e19c6319 @punker76 punker76 committed Feb 22, 2015
Showing with 2 additions and 0 deletions.
  1. +2 −0 MahApps.Metro/Controls/Helper/ButtonHelper.cs
@@ -1,5 +1,6 @@
using System.Windows;
using System.Windows.Controls;
+using System.Windows.Controls.Primitives;
namespace MahApps.Metro.Controls
{
@@ -42,6 +43,7 @@ public static void SetPreserveTextCase(UIElement element, bool value)
/// Description taken from original Microsoft description :-D
/// </summary>
[AttachedPropertyBrowsableForType(typeof(Button))]
+ [AttachedPropertyBrowsableForType(typeof(ToggleButton))]
public static CornerRadius GetCornerRadius(UIElement element)
{
return (CornerRadius)element.GetValue(CornerRadiusProperty);

0 comments on commit cd31273

Please sign in to comment.