diff --git a/src/Avalonia.Controls/ToggleSwitch.cs b/src/Avalonia.Controls/ToggleSwitch.cs
index 79638dce74..ad35c43d87 100644
--- a/src/Avalonia.Controls/ToggleSwitch.cs
+++ b/src/Avalonia.Controls/ToggleSwitch.cs
@@ -8,31 +8,52 @@ using Avalonia.LogicalTree;
namespace Avalonia.Controls
{
///
- /// A WinUi like ToggleSwitch control.
+ /// A Toggle Switch control.
///
- ///
-
public class ToggleSwitch : ToggleButton
{
+ static ToggleSwitch()
+ {
+ OffContentProperty.Changed.AddClassHandler((x, e) => x.OffContentChanged(e));
+ OnContentProperty.Changed.AddClassHandler((x, e) => x.OnContentChanged(e));
+ }
+
+ ///
+ /// Defines the property.
+ ///
public static readonly StyledProperty