Click here to Skip to main content
15,742,253 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am using a list view control and in this control i have used a text block named as "kit"
i have bind this kit with the answer of the question from the xml table as following code is given

XML
<ListBox Name="ti" Height="Auto" Width="Auto" Margin="512,0,0,0" >
           <ListBox.ItemTemplate>
               <DataTemplate>
                   <StackPanel Orientation="Vertical" Background="Purple">
                       <TextBlock Text="{Binding Qus}" Width="800" Height="auto"  FontSize="20" Foreground="White"/>
                       <RadioButton Content="{Binding Op1}" Name="rbA" Width="670" HorizontalAlignment="Left" VerticalAlignment="Top" FontSize="20" Checked="RadioButton_Checked_1"  />
                       <RadioButton Content="{Binding Op2}" Width="670" HorizontalAlignment="Left" VerticalAlignment="Top" FontSize=" 20" Checked="RadioButton_Checked_2"/>
                       <RadioButton Content="{Binding Op3}" Width="670" HorizontalAlignment="Left" VerticalAlignment="Top" FontSize="20" Checked="RadioButton_Checked_3" />
                       <RadioButton Content="{Binding Op4}" Width="670" HorizontalAlignment="Left" VerticalAlignment="Top" FontSize="20" Checked="RadioButton_Checked_4" />
                       <TextBlock Name="kit" Text="{Binding Ans}" Foreground="Red" HorizontalAlignment="Left" VerticalAlignment="Top" FontSize=" 20"/>

                   </StackPanel>

               </DataTemplate>

           </ListBox.ItemTemplate>

now i want to ask that i want to access the value of the kit in the c# coding for the score purpose so suggest me how i can access the value of kit in the c#
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900