Add preview tag to Graphing feature (#907)
* Add preview tag to Graphing * Fix Graph Settings button in dark mode
This commit is contained in:
@@ -498,7 +498,17 @@ MUXC::NavigationViewItem ^ MainPage::CreateNavViewItemFromCategory(NavCategory ^
|
||||
icon->Glyph = category->Glyph;
|
||||
item->Icon = icon;
|
||||
|
||||
item->Content = category->Name;
|
||||
if (category->IsPreview)
|
||||
{
|
||||
auto contentPresenter = ref new ContentPresenter();
|
||||
contentPresenter->Content = category->Name;
|
||||
contentPresenter->ContentTemplate = static_cast<DataTemplate ^>(Resources->Lookup(L"NavMenuItemPreviewDataTemplate"));
|
||||
item->Content = contentPresenter;
|
||||
}
|
||||
else
|
||||
{
|
||||
item->Content = category->Name;
|
||||
}
|
||||
item->AccessKey = category->AccessKey;
|
||||
item->IsEnabled = category->IsEnabled;
|
||||
item->Style = static_cast<Windows::UI::Xaml::Style ^>(Resources->Lookup(L"NavViewItemStyle"));
|
||||
|
||||
Reference in New Issue
Block a user