I am not able to disable the Virtualizing property under VirtualizingStackPanel for listbox .I am only getting VirtualizationMode property. Actually i need to get checkbox element under listbox.Tried several methods but most appropriate ans i got here but i was getting ItemContainerGenerator as null. After more rnd i found that i need to set IsVirtualizing=false to get the ItemContainerGenerator . xaml is ::
<ListBox x:Name="my_list" Grid.Row="0">
<ItemsControl.ItemTemplate >
<DataTemplate >
<StackPanel Orientation="Horizontal" >
<CheckBox x:Name="cbx_state" Tag="{Binding}"/>
<TextBlock x:Name="txt_string" Text="{Binding}" VerticalAlignment="Center" FontSize="34" />
</StackPanel>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ListBox>
I am not able to get VirtualizingStackPanel.isvertualing property.I was trying to get cbx_state.
I have done in this manner i got check box checked from c# In Page1.xaml:
in page1.cs