File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
src/ManagedShell.Common/Helpers Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ public class SearchHelper : DependencyObject
2525 static SearchHelper ( )
2626 {
2727 m_results = new ThreadSafeObservableCollection < SearchResult > ( ) ;
28+ m_resultsReadOnly = new ReadOnlyObservableCollection < SearchResult > ( m_results ) ;
2829 }
2930
3031 public static readonly DependencyProperty SearchTextProperty = DependencyProperty . Register ( "SearchText" ,
@@ -193,10 +194,11 @@ public string SearchText
193194 }
194195
195196 static ThreadSafeObservableCollection < SearchResult > m_results ;
197+ static ReadOnlyObservableCollection < SearchResult > m_resultsReadOnly ;
196198
197199 public ReadOnlyObservableCollection < SearchResult > Results
198200 {
199- get { return new ReadOnlyObservableCollection < SearchResult > ( m_results ) ; }
201+ get { return m_resultsReadOnly ; }
200202 }
201203 }
202204}
You can’t perform that action at this time.
0 commit comments