<ui:Page
    x:Class="ModernWpf.SampleApp.ControlPages.CheckBoxPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:ui="http://schemas.modernwpf.com/2019"
    xmlns:sc="clr-namespace:SamplesCommon;assembly=SamplesCommon"
    mc:Ignorable="d">

    <ScrollViewer>
        <ui:SimpleStackPanel Style="{StaticResource ControlPageContentPanelStyle}">
            <sc:ControlExample HeaderText="A 2-state CheckBox.">
                <StackPanel>
                    <CheckBox
                        Content="Action Text"
                        MinHeight="{Binding ElementName=MinHeightSlider, Path=Value}" />
                    <CheckBox
                        Content="Action Text"
                        IsChecked="True"
                        MinHeight="{Binding ElementName=MinHeightSlider, Path=Value}" />
                    <CheckBox
                        Content="Action Text 3 that displays how this text
wraps to two lines"
                        MinHeight="{Binding ElementName=MinHeightSlider, Path=Value}" />
                    <CheckBox
                        Content="Action Text"
                        MinHeight="{Binding ElementName=MinHeightSlider, Path=Value}" />
                </StackPanel>
                <sc:ControlExample.Options>
                    <ui:SimpleStackPanel Style="{StaticResource OptionsPanelStyle}">
                        <Slider
                            x:Name="MinHeightSlider"
                            ui:ControlHelper.Header="MinHeight"
                            Minimum="0"
                            Maximum="64"
                            Value="32"
                            TickFrequency="4"
                            IsSnapToTickEnabled="True"
                            AutoToolTipPlacement="TopLeft" />
                    </ui:SimpleStackPanel>
                </sc:ControlExample.Options>
            </sc:ControlExample>
        </ui:SimpleStackPanel>
    </ScrollViewer>
</ui:Page>
