@@ -19,6 +19,7 @@ public class TopicQueryOptions {
1919 | PRIVATE VARIABLES
2020 \-------------------------------------------------------------------------------------------------------------------------*/
2121 bool _markRelated = false ;
22+ bool _expandRelated = true ;
2223 bool _showCheckboxes = false ;
2324
2425 /*==========================================================================================================================
@@ -44,6 +45,7 @@ public TopicQueryOptions() {
4445 AttributeValue = null ;
4546 Query = null ;
4647 MarkRelated = false ;
48+ ExpandRelated = false ;
4749 RelatedTopicId = - 1 ;
4850 RelatedNamespace = null ;
4951 EnableCheckboxes = false ;
@@ -195,18 +197,33 @@ public bool EnableCheckboxes {
195197 | MARK RELATED
196198 \-------------------------------------------------------------------------------------------------------------------------*/
197199 /// <summary>
198- /// Determines whether <see cref="QueryResultTopicViewModel"/>s should be marked as <see cref="QueryResultTopicViewModel.IsChecked"/>
199- /// based on their presence in related topics.
200+ /// Determines whether <see cref="QueryResultTopicViewModel"/>s should be marked as <see cref="QueryResultTopicViewModel.
201+ /// IsChecked"/> based on their presence in related topics.
200202 /// </summary>
201203 /// <remarks>
202- /// This will automatically be set to true is <see cref="RelatedTopicId"/> or <see cref="RelatedNamespace"/> are set. If
204+ /// This will automatically be set to true if <see cref="RelatedTopicId"/> or <see cref="RelatedNamespace"/> are set. If
203205 /// <see cref="RelatedTopicId"/> is <i>not</i> set, then the current <see cref="Topic"/> should be assumed.
204206 /// </remarks>
205207 public bool MarkRelated {
206208 get => ( RelatedTopicId > 0 || ! String . IsNullOrEmpty ( RelatedNamespace ) || _markRelated ) ;
207209 set => _markRelated = value ;
208210 }
209211
212+ /*==========================================================================================================================
213+ | EXPAND RELATED
214+ \-------------------------------------------------------------------------------------------------------------------------*/
215+ /// <summary>
216+ /// Determines whether <see cref="QueryResultTopicViewModel"/>s should be marked ascendants as nodes marked as <see
217+ /// cref="QueryResultTopicViewModel.IsChecked"/> as <see cref="QueryResultTopicViewModel.IsExpanded"/>.
218+ /// </summary>
219+ /// <remarks>
220+ /// This will automatically be set to true if <see cref="MarkRelated"/> is set to true.
221+ /// </remarks>
222+ public bool ExpandRelated {
223+ get => ( MarkRelated && _expandRelated ) ;
224+ set => _expandRelated = value ;
225+ }
226+
210227 /*==========================================================================================================================
211228 | RELATED TOPIC ID
212229 \-------------------------------------------------------------------------------------------------------------------------*/
0 commit comments