I have a Model-View-ViewModel implemented for a searchable ListBox. My Xaml looks like this:
(Please ignore the fact what I'm doing inside, it's just for test purposes)
<ListView ItemsSource="{Binding Path=People}" >
<ListView.ItemTemplate>
<DataTemplate>
<Border>
<TextBox Text="{Binding Path=Name, Mode=OneWay}" IsEnabled="{Binding Path=IsEnabled}"
Background="{Binding Path=SelectedBackground, Mode=OneWay}"/>
</Border>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
The only one missing thing is something like IsFocused. Problem is that such a property doesn't exist. And I dont want to attach Event Handlers on the ListView, I just want my Code behind empty (except InitializeControls())
Any Idea? Should I use another Control for this purpose?