File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4747 <Compile Include =" IndexTopicViewModel.cs" />
4848 <Compile Include =" ItemTopicViewModel.cs" />
4949 <Compile Include =" LookupListItemTopicViewModel.cs" />
50+ <Compile Include =" NavigationTopicViewModel.cs" />
5051 <Compile Include =" PageGroupTopicViewModel.cs" />
5152 <Compile Include =" PageTopicViewModel.cs" />
5253 <Compile Include =" Properties\AssemblyInfo.cs" />
Original file line number Diff line number Diff line change 1+ /*==============================================================================================================================
2+ | Author Ignia, LLC
3+ | Client Ignia
4+ | Project Website
5+ \=============================================================================================================================*/
6+
7+ using System . Collections . ObjectModel ;
8+
9+ namespace Ignia . Topics . ViewModels {
10+
11+ /*============================================================================================================================
12+ | VIEW MODEL: NAVIGATION TOPIC
13+ \---------------------------------------------------------------------------------------------------------------------------*/
14+ /// <summary>
15+ /// Provides a strongly-typed data transfer object for feeding views with information about the navigation.
16+ /// </summary>
17+ /// <remarks>
18+ /// No topics are expected to have a <c>Navigation</c> content type. Instead, this view model is expected to be manually
19+ /// constructed by e.g. a <c>LayoutController</c>.
20+ /// </remarks>
21+ public class NavigationTopicViewModel : PageTopicViewModel , INavigationTopicViewModelCore {
22+
23+ public Collection < INavigationTopicViewModelCore > Children { get ; set ; }
24+ public bool IsSelected ( string uniqueKey ) => uniqueKey ? . StartsWith ( this . UniqueKey ) ?? false ;
25+
26+ } // Class
27+
28+ } // Namespace
You can’t perform that action at this time.
0 commit comments