using Windows.UI.Xaml; using Windows.UI.Xaml.Controls.Primitives; namespace OwlCore.WinUI.Controls { /// /// A that can change content when toggled. /// public partial class ToggleContentButton : ToggleButton { /// /// A for the property. /// public static readonly DependencyProperty CheckContentProperty = DependencyProperty.Register( nameof(CheckedContent), typeof(object), typeof(ToggleContentButton), new PropertyMetadata(null)); /// /// A for the property. /// public static readonly DependencyProperty IndeterminateContentProperty = DependencyProperty.Register( nameof(IndeterminateContent), typeof(object), typeof(ToggleContentButton), new PropertyMetadata(null)); /// /// Initializes a new instance of the class. /// public ToggleContentButton() { this.DefaultStyleKey = typeof(ToggleContentButton); } /// /// The the shows when checked. /// public object CheckedContent { get { return (object)GetValue(CheckContentProperty); } set { SetValue(CheckContentProperty, value); } } /// /// The the shows when indeterminate. /// public object IndeterminateContent { get { return (object)GetValue(IndeterminateContentProperty); } set { SetValue(IndeterminateContentProperty, value); } } } }