Hello, I have a GUI application that has a ListView. It is used to show the log of the app. In the xaml I have the following:
<ListView x:Name="lvStatus" Margin="5,5,5,5" ItemsSource="{Binding LogView}"
ItemTemplate="{StaticResource StatusListTemplate}">
</ListView>
In the code the listView is initialized and used with a ListCollectionView:
public ListCollectionView LogView {get; private set; }
...
ObservableCollectionLog uiLogSink = new ObservableCollectionLog();
Logger.RegisterLogSink(uiLogSink);
LogView = new ListCollectionView(uiLogSink.Entries);
I would like at some point clear the ListView. I can't just run a ListView.Clear.
Any idea how I can control my ListView?
Thanks Tony