void OnRulesClicked(object sender, RoutedEventArgs e) { var wnd = new RulesWindow(LogRules); wnd.Owner = this; var res = wnd.ShowDialog(); if (res == true) { LogRules = wnd.ResultLogRules; var dataView = CollectionViewSource.GetDefaultView(logListView.ItemsSource); dataView.Refresh(); } }