private DelegateCommand _clearCommand;
private string _searchText;
- private SyslogList _selectedItems;
private List<SyslogList> _syslogList;
private List<SyslogList> _filteredList;
}
}
- public SyslogList SelectedItems
- {
- get { return _selectedItems; }
- set { SetProperty(ref _selectedItems, value); }
- }
-
public List<SyslogList> syslogList {
get { return _syslogList; }
set {
<TextBlock HorizontalAlignment="Right" Margin="0,0,124,0" Text="Suche:" VerticalAlignment="Top"/>
<TextBox x:Name="tbSearch" HorizontalAlignment="Right" VerticalAlignment="Top" Width="120" Text="{Binding Path=SearchText, UpdateSourceTrigger=PropertyChanged}"/>
- <ListView ItemsSource="{Binding filteredList}" SelectedItem="{Binding Path=SelectedItems, UpdateSourceTrigger=PropertyChanged}" x:Name="listView" Margin="0,23,0,39">
+ <ListView ItemsSource="{Binding filteredList}" x:Name="listView" Margin="0,23,0,39">
<ListBox.ItemContainerStyle>
<Style TargetType="{x:Type ListBoxItem}">
<Setter Property="IsSelected" Value="{Binding Mode=TwoWay, Path=IsSelected}"/>