Add CheckBox to StackPanel : CheckBox « Windows Presentation Foundation « C# / CSharp Tutorial






<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  HorizontalAlignment="Center" VerticalAlignment="Center">
    <StackPanel Background="#ECE9D8">
      <TextBlock Margin="3">Look for:</TextBlock>
      <ComboBox  Margin="3"/>
      <TextBlock Margin="3">Filtered by:</TextBlock>
      <ComboBox  Margin="3"/>
      <Button    Margin="3,5">Search</Button>
      <CheckBox  Margin="3">Search in titles only</CheckBox>
      <CheckBox  Margin="3">Match related words</CheckBox>
      <CheckBox  Margin="3">Search in previous results</CheckBox>
      <CheckBox  Margin="3">Highlight search hits (in topics)</CheckBox>
    </StackPanel>

</Window>
WPF Add Check Box To Stack Panel








24.17.CheckBox
24.17.1.Add CheckBox to StackPanelAdd CheckBox to StackPanel
24.17.2.Three-State CheckBoxThree-State CheckBox
24.17.3.A CheckBox with a skew transformationA CheckBox with a skew transformation
24.17.4.Customized CheckBoxCustomized CheckBox
24.17.5.CheckBox StyleCheckBox Style
24.17.6.CheckBox ListCheckBox List