using System.Windows; using System.Windows.Controls.Primitives; using HandyControl.Tools; namespace HandyControl.Controls; public class SwitchPropertyEditor : PropertyEditorBase { public override FrameworkElement CreateElement(PropertyItem propertyItem) => new ToggleButton { Style = ResourceHelper.GetResourceInternal