namespace WPFluent.Controls;
///
/// Use to present users with two mutally exclusive options (like on/off).
///
public class ToggleSwitch : System.Windows.Controls.Primitives.ToggleButton
{
///
/// Identifies the dependency property.
///
public static readonly DependencyProperty OffContentProperty = DependencyProperty.Register(
nameof(OffContent),
typeof(object),
typeof(ToggleSwitch),
new PropertyMetadata(null));
///
/// Identifies the dependency property.
///
public static readonly DependencyProperty OnContentProperty = DependencyProperty.Register(
nameof(OnContent),
typeof(object),
typeof(ToggleSwitch),
new PropertyMetadata(null));
///
/// Gets or sets the content that should be displayed when the is in the "Off" state.
///
[Bindable(true)]
public object OffContent { get => GetValue(OffContentProperty); set => SetValue(OffContentProperty, value); }
///
/// Gets or sets the content that should be displayed when the is in the "On" state.
///
[Bindable(true)]
public object OnContent { get => GetValue(OnContentProperty); set => SetValue(OnContentProperty, value); }
}