Set RadioButton to check state : RadioButton « Windows Presentation Foundation « C# / C Sharp






Set RadioButton to check state

Set RadioButton to check state
      
<Window x:Class="WpfApplication1.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="FlowDocumentPage" Height="450" Width="500">
    <DockPanel>
        <Button Padding="20" Margin="40">
            <FlowDocumentReader>
                <FlowDocument FontSize="12" xml:space="preserve">
                    <Paragraph TextAlignment="Center" FontSize="18"><Bold>bold</Bold></Paragraph>
                    <Paragraph>Para<Italic>italic</Italic>HTML</Paragraph>
                    <Paragraph>aaa<Button>Push me</Button> 
                    <RadioButton IsChecked="True">Yes</RadioButton>
                    <RadioButton>No</RadioButton>
                    <RadioButton>Unsure</RadioButton>
                    </Paragraph>
                    <Paragraph><Bold>Lists:</Bold></Paragraph>
                    <List>
                        <ListItem><Paragraph>A</Paragraph></ListItem>
                        <ListItem><Paragraph>B</Paragraph></ListItem>
                        <ListItem><Paragraph>C<Ellipse Fill="Red" Width="20" Height="20"/></Paragraph></ListItem>
                        <ListItem><Paragraph>D<Rectangle Fill="Blue" Width="20" Height="20"></Rectangle></Paragraph></ListItem>
                    </List>
                </FlowDocument>
            </FlowDocumentReader>
        </Button>
    </DockPanel>
</Window>

   
    
    
    
    
    
  








Related examples in the same category

1.Checked RadioButtonChecked RadioButton
2.Use StackPanel to Hold RadioButtonsUse StackPanel to Hold RadioButtons
3.Circled Radio ButtonsCircled Radio Buttons
4.Color animate based on Radio Button Click eventColor animate based on Radio Button Click event
5.Radio Button GroupsRadio Button Groups
6.Image RadioButtonImage RadioButton
7.RadioButton click eventRadioButton click event
8.Use RadioButton to control TextBox alignmentUse RadioButton to control TextBox alignment
9.RadioButton checked event handlerRadioButton checked event handler