Skip to content

Commit

Permalink
Add Helper and Common NavItem
Browse files Browse the repository at this point in the history
  • Loading branch information
ghost1372 committed Feb 17, 2025
1 parent 7cb48dd commit 6945d35
Show file tree
Hide file tree
Showing 2 changed files with 252 additions and 43 deletions.
283 changes: 246 additions & 37 deletions dev/DevWinUI.Gallery/Assets/NavViewMenu/AppData.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,6 @@
"Subtitle": "Watermark a Text or Image",
"ImagePath": "ms-appx:///Assets/Fluent/ListView.png"
},
{
"UniqueId": "DevWinUIGallery.Views.BlurAnimationPage",
"Title": "Blur Animation Helper",
"Subtitle": "Blur Animation Helper",
"ImagePath": "ms-appx:///Assets/Fluent/Acrylic.png"
},
{
"UniqueId": "DevWinUIGallery.Views.TextMorphEffectPage",
"Title": "Text Morph Effect",
Expand Down Expand Up @@ -185,13 +179,6 @@
"IsNew": true,
"ImagePath": "ms-appx:///Assets/Fluent/CalendarView.png"
},
{
"UniqueId": "DevWinUIGallery.Views.RichTextFormatterPage",
"Title": "RichTextFormatter",
"Subtitle": "Formats a TextBlock/RichTextBlock using HTML-like formatting codes",
"IsNew": true,
"ImagePath": "ms-appx:///Assets/Fluent/RichEditBox.png"
},
{
"UniqueId": "DevWinUIGallery.Views.ProgressButtonPage",
"Title": "ProgressButton",
Expand Down Expand Up @@ -239,12 +226,6 @@
"Subtitle": "LongShadowTextBlock",
"ImagePath": "ms-appx:///Assets/Fluent/RichEditBox.png"
},
{
"UniqueId": "DevWinUIGallery.Views.CredentialHelperPage",
"Title": "CredentialHelper",
"Subtitle": "CredentialHelper",
"ImagePath": "ms-appx:///Assets/Fluent/ContentDialog.png"
},
{
"UniqueId": "DevWinUIGallery.Views.CompositionHelperPage",
"Title": "CompositionHelper",
Expand Down Expand Up @@ -311,12 +292,6 @@
"Subtitle": "A page with options",
"ImagePath": "ms-appx:///Assets/Fluent/OptionsPageControl.png"
},
{
"UniqueId": "DevWinUIGallery.Views.RainbowFramePage",
"Title": "Rainbow Frame",
"Subtitle": "A window with Rainbow Frame",
"ImagePath": "ms-appx:///Assets/Fluent/ColorPaletteResources.png"
},
{
"UniqueId": "DevWinUIGallery.Views.FileAndFolderPickerPage",
"Title": "File And Folder Picker",
Expand Down Expand Up @@ -347,18 +322,6 @@
"Subtitle": "Extension",
"ImagePath": "ms-appx:///Assets/Fluent/Extensions.png"
},
{
"UniqueId": "DevWinUIGallery.Views.ThemeManagerPage",
"Title": "ThemeService",
"Subtitle": "Change Application Theme and Material Easily",
"ImagePath": "ms-appx:///Assets/Fluent/RevealFocus.png"
},
{
"UniqueId": "DevWinUIGallery.Views.CheckUpdatePage",
"Title": "Check Update",
"Subtitle": "Check Application Update from Github",
"ImagePath": "ms-appx:///Assets/Fluent/Update.png"
},
{
"UniqueId": "DevWinUIGallery.Views.InlineAutoCompleteTextBoxPage",
"Title": "Inline AutoComplete TextBox",
Expand Down Expand Up @@ -473,6 +436,252 @@
"ImagePath": "ms-appx:///Assets/Fluent/ShortcutGuide.png"
}
]
},
{
"UniqueId": "Helpers",
"SectionId": "DevWinUIGallery.Views.DemoSectionPage",
"Title": "Helpers",
"ImagePath": "ms-appx:///Assets/Fluent/Behaviors.png",
"IsSpecialSection": false,
"Items": [
{
"UniqueId": "DevWinUIGallery.Views.DragMoveAndResizeHelperPage",
"Title": "DragMoveAndResizeHelper",
"Subtitle": "Move a Window by dragging UIElement",
"IsNew": true,
"ImagePath": "ms-appx:///Assets/Fluent/Extensions.png"
},
{
"UniqueId": "DevWinUIGallery.Views.CheckUpdatePage",
"Title": "UpdateHelper",
"Subtitle": "Check Application Update from Github",
"IsNew": true,
"ImagePath": "ms-appx:///Assets/Fluent/Extensions.png"
},
{
"UniqueId": "DevWinUIGallery.Views.PersianDateTimePage",
"Title": "Persian DateTime",
"Subtitle": "Persian DateTime",
"IsNew": true,
"ImagePath": "ms-appx:///Assets/Fluent/Extensions.png"
},
{
"UniqueId": "DevWinUIGallery.Views.ResourceHelperPage",
"Title": "Resource",
"Subtitle": "Resource",
"IsNew": true,
"ImagePath": "ms-appx:///Assets/Fluent/Extensions.png"
},
{
"UniqueId": "DevWinUIGallery.Views.SecurityHelperPage",
"Title": "SecurityHelper",
"Subtitle": "Hash, Encrypt and Decrypt Files and Strings",
"IsNew": true,
"ImagePath": "ms-appx:///Assets/Fluent/Extensions.png"
},
{
"UniqueId": "DevWinUIGallery.Views.WindowHelperPage",
"Title": "WindowHelper",
"Subtitle": "Windowing API",
"IsNew": true,
"ImagePath": "ms-appx:///Assets/Fluent/Extensions.png"
},
{
"UniqueId": "DevWinUIGallery.Views.AutoSuggestBoxHelperPage",
"Title": "AutoSuggestBoxHelper",
"Subtitle": "AutoSuggestBoxHelper",
"IsNew": true,
"ImagePath": "ms-appx:///Assets/Fluent/Extensions.png"
},
{
"UniqueId": "DevWinUIGallery.Views.ColorHelperPage",
"Title": "ColorHelper",
"Subtitle": "ColorHelper",
"IsNew": true,
"ImagePath": "ms-appx:///Assets/Fluent/Extensions.png"
},
{
"UniqueId": "DevWinUIGallery.Views.CredentialHelperPage",
"Title": "CredentialHelper",
"Subtitle": "CredentialHelper",
"IsNew": true,
"ImagePath": "ms-appx:///Assets/Fluent/Extensions.png"
},
{
"UniqueId": "DevWinUIGallery.Views.FileAndFolderPickerHelperPage",
"Title": "FileAndFolderPickerHelper",
"Subtitle": "FileAndFolderPickerHelper",
"IsNew": true,
"ImagePath": "ms-appx:///Assets/Fluent/Extensions.png"
},
{
"UniqueId": "DevWinUIGallery.Views.FileHelperPage",
"Title": "FileHelperPage",
"Subtitle": "FileHelperPage",
"IsNew": true,
"ImagePath": "ms-appx:///Assets/Fluent/Extensions.png"
},
{
"UniqueId": "DevWinUIGallery.Views.GeneralHelperPage",
"Title": "GeneralHelper",
"Subtitle": "GeneralHelper",
"IsNew": true,
"ImagePath": "ms-appx:///Assets/Fluent/Extensions.png"
},
{
"UniqueId": "DevWinUIGallery.Views.InIHelperPage",
"Title": "InIHelperPage",
"Subtitle": "InIHelperPage",
"IsNew": true,
"ImagePath": "ms-appx:///Assets/Fluent/Extensions.png"
},
{
"UniqueId": "DevWinUIGallery.Views.NetworkHelperPage",
"Title": "NetworkHelper",
"Subtitle": "NetworkHelper",
"IsNew": true,
"ImagePath": "ms-appx:///Assets/Fluent/Extensions.png"
},
{
"UniqueId": "DevWinUIGallery.Views.OSVersionHelperPage",
"Title": "OSVersionHelper",
"Subtitle": "OSVersionHelper",
"IsNew": true,
"ImagePath": "ms-appx:///Assets/Fluent/Extensions.png"
},
{
"UniqueId": "DevWinUIGallery.Views.PackageHelperPage",
"Title": "PackageHelper",
"Subtitle": "PackageHelper",
"IsNew": true,
"ImagePath": "ms-appx:///Assets/Fluent/Extensions.png"
},
{
"UniqueId": "DevWinUIGallery.Views.PathHelperPage",
"Title": "PathHelper",
"Subtitle": "PathHelper",
"IsNew": true,
"ImagePath": "ms-appx:///Assets/Fluent/Extensions.png"
},
{
"UniqueId": "DevWinUIGallery.Views.ProcessInfoHelperPage",
"Title": "ProcessInfoHelper",
"Subtitle": "ProcessInfoHelper",
"IsNew": true,
"ImagePath": "ms-appx:///Assets/Fluent/Extensions.png"
},
{
"UniqueId": "DevWinUIGallery.Views.RuntimeHelperPage",
"Title": "RuntimeHelper",
"Subtitle": "RuntimeHelper",
"IsNew": true,
"ImagePath": "ms-appx:///Assets/Fluent/Extensions.png"
},
{
"UniqueId": "DevWinUIGallery.Views.StartupHelperPage",
"Title": "StartupHelper",
"Subtitle": "StartupHelper",
"IsNew": true,
"ImagePath": "ms-appx:///Assets/Fluent/Extensions.png"
},
{
"UniqueId": "DevWinUIGallery.Views.TaskbarHelperPage",
"Title": "TaskbarHelper",
"Subtitle": "TaskbarHelper",
"IsNew": true,
"ImagePath": "ms-appx:///Assets/Fluent/Extensions.png"
},
{
"UniqueId": "DevWinUIGallery.Views.VisualHelperPage",
"Title": "VisualHelper",
"Subtitle": "VisualHelper",
"IsNew": true,
"ImagePath": "ms-appx:///Assets/Fluent/Extensions.png"
},
{
"UniqueId": "DevWinUIGallery.Views.DisplayMonitorHelperPage",
"Title": "DisplayMonitorHelper",
"Subtitle": "DisplayMonitorHelper",
"IsNew": true,
"ImagePath": "ms-appx:///Assets/Fluent/Extensions.png"
},
{
"UniqueId": "DevWinUIGallery.Views.BlurAnimationPage",
"Title": "Blur Animation Helper",
"Subtitle": "Blur Animation Helper",
"ImagePath": "ms-appx:///Assets/Fluent/Extensions.png"
},
{
"UniqueId": "DevWinUIGallery.Views.RichTextFormatterPage",
"Title": "RichTextFormatter",
"Subtitle": "Formats a TextBlock/RichTextBlock using HTML-like formatting codes",
"IsNew": true,
"ImagePath": "ms-appx:///Assets/Fluent/Extensions.png"
}
]
},
{
"UniqueId": "Common",
"SectionId": "DevWinUIGallery.Views.DemoSectionPage",
"Title": "Common",
"ImagePath": "ms-appx:///Assets/Fluent/Behaviors.png",
"IsSpecialSection": false,
"Items": [
{
"UniqueId": "DevWinUIGallery.Views.BackdropPage",
"Title": "Backdrop",
"Subtitle": "System Backdrop",
"IsNew": true,
"ImagePath": "ms-appx:///Assets/Fluent/Extensions.png"
},
{
"UniqueId": "DevWinUIGallery.Views.MessageBoxPage",
"Title": "MessageBox",
"Subtitle": "Legacy MessageBox",
"IsNew": true,
"ImagePath": "ms-appx:///Assets/Fluent/Extensions.png"
},
{
"UniqueId": "DevWinUIGallery.Views.IconElementPage",
"Title": "IconElement",
"Subtitle": "IconElement",
"IsNew": true,
"ImagePath": "ms-appx:///Assets/Fluent/Extensions.png"
},
{
"UniqueId": "DevWinUIGallery.Views.RainbowFramePage",
"Title": "Rainbow Frame",
"Subtitle": "A window with Rainbow Frame",
"ImagePath": "ms-appx:///Assets/Fluent/Extensions.png"
},
{
"UniqueId": "DevWinUIGallery.Views.RelativeDatePage",
"Title": "RelativeDate",
"Subtitle": "RelativeDate",
"IsNew": true,
"ImagePath": "ms-appx:///Assets/Fluent/Extensions.png"
},
{
"UniqueId": "DevWinUIGallery.Views.ColorBrightnessExtensionPage",
"Title": "ColorBrightness",
"Subtitle": "ColorBrightness",
"IsNew": true,
"ImagePath": "ms-appx:///Assets/Fluent/Extensions.png"
},
{
"UniqueId": "DevWinUIGallery.Views.ThemeManagerPage",
"Title": "ThemeService",
"Subtitle": "Change Application Theme and Material Easily",
"ImagePath": "ms-appx:///Assets/Fluent/RevealFocus.png"
},
{
"UniqueId": "DevWinUIGallery.Views.ConvertersPage",
"Title": "Converters",
"Subtitle": "Converters",
"IsNew": true,
"ImagePath": "ms-appx:///Assets/Fluent/RevealFocus.png"
}
]
}
]
}
12 changes: 6 additions & 6 deletions dev/DevWinUI.Gallery/T4Templates/NavigationPageMappings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ public partial class NavigationPageMappings
{"DevWinUIGallery.Views.TiledImageBrushPage", typeof(DevWinUIGallery.Views.TiledImageBrushPage)},
{"DevWinUIGallery.Views.OutlineTextControlPage", typeof(DevWinUIGallery.Views.OutlineTextControlPage)},
{"DevWinUIGallery.Views.WatermarkPage", typeof(DevWinUIGallery.Views.WatermarkPage)},
{"DevWinUIGallery.Views.BlurAnimationPage", typeof(DevWinUIGallery.Views.BlurAnimationPage)},
{"DevWinUIGallery.Views.TextMorphEffectPage", typeof(DevWinUIGallery.Views.TextMorphEffectPage)},
{"DevWinUIGallery.Views.TextGlitchEffectPage", typeof(DevWinUIGallery.Views.TextGlitchEffectPage)},
{"DevWinUIGallery.Views.TextBlockStrokeViewPage", typeof(DevWinUIGallery.Views.TextBlockStrokeViewPage)},
Expand All @@ -38,15 +37,13 @@ public partial class NavigationPageMappings
{"DevWinUIGallery.Views.ClockPage", typeof(DevWinUIGallery.Views.ClockPage)},
{"DevWinUIGallery.Views.DateTimePickerPage", typeof(DevWinUIGallery.Views.DateTimePickerPage)},
{"DevWinUIGallery.Views.CalendarWithClockPage", typeof(DevWinUIGallery.Views.CalendarWithClockPage)},
{"DevWinUIGallery.Views.RichTextFormatterPage", typeof(DevWinUIGallery.Views.RichTextFormatterPage)},
{"DevWinUIGallery.Views.ProgressButtonPage", typeof(DevWinUIGallery.Views.ProgressButtonPage)},
{"DevWinUIGallery.Views.TextBoxPage", typeof(DevWinUIGallery.Views.TextBoxPage)},
{"DevWinUIGallery.Views.TileControlPage", typeof(DevWinUIGallery.Views.TileControlPage)},
{"DevWinUIGallery.Views.PinBoxPage", typeof(DevWinUIGallery.Views.PinBoxPage)},
{"DevWinUIGallery.Views.SelectorBarSegmentedPage", typeof(DevWinUIGallery.Views.SelectorBarSegmentedPage)},
{"DevWinUIGallery.Views.ColorfulShimmingEffectPage", typeof(DevWinUIGallery.Views.ColorfulShimmingEffectPage)},
{"DevWinUIGallery.Views.LongShadowTextBlockPage", typeof(DevWinUIGallery.Views.LongShadowTextBlockPage)},
{"DevWinUIGallery.Views.CredentialHelperPage", typeof(DevWinUIGallery.Views.CredentialHelperPage)},
{"DevWinUIGallery.Views.CompositionHelperPage", typeof(DevWinUIGallery.Views.CompositionHelperPage)},
{"DevWinUIGallery.Views.FlipSidePage", typeof(DevWinUIGallery.Views.FlipSidePage)},
{"DevWinUIGallery.Views.PagerControlPage", typeof(DevWinUIGallery.Views.PagerControlPage)},
Expand All @@ -58,14 +55,11 @@ public partial class NavigationPageMappings
{"DevWinUIGallery.Views.GravatarPage", typeof(DevWinUIGallery.Views.GravatarPage)},
{"DevWinUIGallery.Views.GrowlPage", typeof(DevWinUIGallery.Views.GrowlPage)},
{"DevWinUIGallery.Views.OptionsPageControlPage", typeof(DevWinUIGallery.Views.OptionsPageControlPage)},
{"DevWinUIGallery.Views.RainbowFramePage", typeof(DevWinUIGallery.Views.RainbowFramePage)},
{"DevWinUIGallery.Views.FileAndFolderPickerPage", typeof(DevWinUIGallery.Views.FileAndFolderPickerPage)},
{"DevWinUIGallery.Views.StylesPage", typeof(DevWinUIGallery.Views.StylesPage)},
{"DevWinUIGallery.Views.SwitchPresenterPage", typeof(DevWinUIGallery.Views.SwitchPresenterPage)},
{"DevWinUIGallery.Views.ValidationPage", typeof(DevWinUIGallery.Views.ValidationPage)},
{"DevWinUIGallery.Views.ExtensionPage", typeof(DevWinUIGallery.Views.ExtensionPage)},
{"DevWinUIGallery.Views.ThemeManagerPage", typeof(DevWinUIGallery.Views.ThemeManagerPage)},
{"DevWinUIGallery.Views.CheckUpdatePage", typeof(DevWinUIGallery.Views.CheckUpdatePage)},
{"DevWinUIGallery.Views.InlineAutoCompleteTextBoxPage", typeof(DevWinUIGallery.Views.InlineAutoCompleteTextBoxPage)},
{"DevWinUIGallery.Views.AllLandingsPage", typeof(DevWinUIGallery.Views.AllLandingsPage)},
{"DevWinUIGallery.Views.HomeLandingsPage", typeof(DevWinUIGallery.Views.HomeLandingsPage)},
Expand All @@ -82,5 +76,11 @@ public partial class NavigationPageMappings
{"DevWinUIGallery.Views.PowerRenamePage", typeof(DevWinUIGallery.Views.PowerRenamePage)},
{"DevWinUIGallery.Views.PowerLauncherPage", typeof(DevWinUIGallery.Views.PowerLauncherPage)},
{"DevWinUIGallery.Views.ShortcutGuidePage", typeof(DevWinUIGallery.Views.ShortcutGuidePage)},
{"DevWinUIGallery.Views.CheckUpdatePage", typeof(DevWinUIGallery.Views.CheckUpdatePage)},
{"DevWinUIGallery.Views.CredentialHelperPage", typeof(DevWinUIGallery.Views.CredentialHelperPage)},
{"DevWinUIGallery.Views.BlurAnimationPage", typeof(DevWinUIGallery.Views.BlurAnimationPage)},
{"DevWinUIGallery.Views.RichTextFormatterPage", typeof(DevWinUIGallery.Views.RichTextFormatterPage)},
{"DevWinUIGallery.Views.RainbowFramePage", typeof(DevWinUIGallery.Views.RainbowFramePage)},
{"DevWinUIGallery.Views.ThemeManagerPage", typeof(DevWinUIGallery.Views.ThemeManagerPage)},
};
}

0 comments on commit 6945d35

Please sign in to comment.