@@ -75,7 +75,7 @@ void ApplicationViewModel::Categories::set(IObservableVector<NavCategoryGroup ^>
75
75
76
76
void ApplicationViewModel::Initialize (ViewMode mode)
77
77
{
78
- if (!NavCategory ::IsValidViewMode (mode) || !NavCategory ::IsViewModeEnabled (mode))
78
+ if (!NavCategoryStates ::IsValidViewMode (mode) || !NavCategoryStates ::IsViewModeEnabled (mode))
79
79
{
80
80
mode = ViewMode::Standard;
81
81
}
@@ -124,7 +124,7 @@ bool ApplicationViewModel::TryRecoverFromNavigationModeFailure()
124
124
125
125
void ApplicationViewModel::OnModeChanged ()
126
126
{
127
- assert (NavCategory ::IsValidViewMode (m_mode));
127
+ assert (NavCategoryStates ::IsValidViewMode (m_mode));
128
128
if (NavCategory::IsCalculatorViewMode (m_mode))
129
129
{
130
130
if (!m_CalculatorViewModel)
@@ -160,15 +160,15 @@ void ApplicationViewModel::OnModeChanged()
160
160
}
161
161
162
162
auto resProvider = AppResourceProvider::GetInstance ();
163
- CategoryName = resProvider->GetResourceString (NavCategory ::GetNameResourceKey (m_mode));
163
+ CategoryName = resProvider->GetResourceString (NavCategoryStates ::GetNameResourceKey (m_mode));
164
164
165
165
// Cast mode to an int in order to save it to app data.
166
166
// Save the changed mode, so that the new window launches in this mode.
167
167
// Don't save until after we have adjusted to the new mode, so we don't save a mode that fails to load.
168
- ApplicationData::Current->LocalSettings ->Values ->Insert (ModePropertyName, NavCategory ::Serialize (m_mode));
168
+ ApplicationData::Current->LocalSettings ->Values ->Insert (ModePropertyName, NavCategoryStates ::Serialize (m_mode));
169
169
170
170
// Log ModeChange event when not first launch, log WindowCreated on first launch
171
- if (NavCategory ::IsValidViewMode (m_PreviousMode))
171
+ if (NavCategoryStates ::IsValidViewMode (m_PreviousMode))
172
172
{
173
173
TraceLogger::GetInstance ()->LogModeChange (m_mode);
174
174
}
@@ -213,7 +213,7 @@ void ApplicationViewModel::SetMenuCategories()
213
213
// Use the Categories property instead of the backing variable
214
214
// because we want to take advantage of binding updates and
215
215
// property setter logic.
216
- Categories = NavCategoryGroup ::CreateMenuOptions ();
216
+ Categories = NavCategoryStates ::CreateMenuOptions ();
217
217
}
218
218
219
219
void ApplicationViewModel::ToggleAlwaysOnTop (float width, float height)
0 commit comments