I have try to display the combobox Items inside the ListViewItems Template by using the below code snippets.And i am try to getting the datacontext of the combobx in combobox loaded event. And datacontext is returns the value only for viewed listViewItems. And it returns the null value for out of the listview items combobox.
<ListView ItemsSource="{Binding PersonsTest, Mode=OneWay}" x:Name="TieLines">
<ListView.ItemTemplate>
<DataTemplate>
<StackPanel>
<ComboBox DataContext="{Binding Orders}" ItemsSource="{Binding Numbers}" Loaded="ComboBox_Loaded" Width="250" />
</StackPanel>
</DataTemplate>
</ListView.ItemTemplate>
Questions Why is return the DataContext value as null for out of the view Items in the ListView? How can get the data-context of out of the view ListViewItems? Or else if i need to enable any other properties to Binding the ComboBox DataContext in XAML level?
PersonsTest,Orders,Numbers? - kennyzx