-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Styles vs Themes Namespaces #3587
Comments
I could also see creating a new directory or set of directories specifically for templates:
These could also be nested in
A more extreme approach would be to create sub-directories or naming conventions for each control type:
or (I personally find this one the easiest to read / navigate, and it strikes a great balance between separation and not having to nest things down too many directory layers):
Again, although the separation will be difficult and tedious now, it makes things much easier to find later down the line, not just for users, but for future contributors. One of the things I struggle with the most (even as a long time user of the library) is finding where the exact item is that I need to change. |
this has been bugging me for years, it is so hard to find a specific style or a template without searching every folder in the project, would love to see that change, i also agree on the last convention you proposed. ( |
@amkuchta I’m still investigating this, how we can provide this in an easy way. The upcoming Visual Studio will help us, because it has a better Intellisence for own resource dictionaries included. R# helps me and other since years. So please wait for a change for this issue. I’m not a friend for such a big change of separating each style and template to it’s own file. Thx |
@punker76 I agree that improved Intellisense will help, but that does not help advanced users who have to search through the code to find entire templates or styles that they may need to override (or modify in a way that requires copying large chunks of code). For that reason, I think that a refactor should occur, especially since there are multiple locations where directories like |
contains - MahApps.Styles.ContentControl.FloatingMessageContainer - MahApps.Styles.ContentControl.PathIcon
… and style MahApps.Styles.TabControl.AnimatedSingleRow
…entAlignment attached properties to HeaderedControlHelper
- Rename MahApps.Templates.Button.Previous to MahApps.Templates.Button.Calendar.Previous - Rename MahApps.Templates.Button.Next to MahApps.Templates.Button.Calendar.Next - Rename MahApps.Templates.Button.Header to MahApps.Templates.Button.Calendar.Header - Make PreviousCalendarButtonStyle public and rename to MahApps.Styles.Button.Calendar.Previous - Make NextCalendarButtonStyle public and rename to MahApps.Styles.Button.Calendar.Next - Make HeaderCalendarButtonStyle public and rename to MahApps.Styles.Button.Calendar.Header
….Styles.PasswordBox.Button.Revealed
…s.Styles.ToggleButton.TreeViewItem.ExpandCollapse
…tyles.Button.MetroWindow.Light.Clean
…pps.Styles.Button.MetroWindow.Close.Light.Clean
…ps.Styles.Button.MetroWindow.Close.Dark.Clean
…to MahApps.Styles.Button.MetroWindow.Close.Light.Clean.Win10
…o MahApps.Styles.Button.MetroWindow.Close.Dark.Clean.Win10
- Rename Clean/Clean.xaml to Clean/Controls.xaml - Rename Clean/CleanGroupBox.xaml to Clean/GroupBox.xaml - Rename Clean/CleanStatusBar.xaml to Clean/StatusBar.xaml - Rename Clean/CleanWindow.xaml to Clean/MetroWindow.xaml - Rename Clean/CleanWindowButtonCommands.xaml to Clean/WindowButtonCommands.xaml - Rename Clean/CleanWindowButtons.xaml to Clean/WindowButtons.xaml - Rename Clean/CleanWindowCommands.xaml to Clean/WindowCommands.xaml
- Rename VS/Styles.xaml to VS/Controls.xaml - Rename VS/Window.xaml to VS/MetroWindow.xaml
…ard.Expander.Expand.VS and MahApps.Storyboard.ExpanderCollapse to MahApps.Storyboard.Expander.Collapse.VS
…o to MahApps.Styles.TextBox.Window.QuickLaunch.VisualStudio
- Create style MahApps.Styles.FlipView - Rename FlipViewNavigationButton to MahApps.Styles.Button.FlipView.Navigation
- Rename MahApps.Templates.MetroTabControl.KeepVisualTreeInMemoryWhenChangingTabs to MahApps.Templates.MetroTabControl.KeepVisualTreeInMemory - Rename MahApps.Templates.MetroTabControl.DoNotKeepVisualTreeInMemoryWhenChangingTabs to MahApps.Templates.MetroTabControl.DoNotKeepVisualTreeInMemory
- Rename MahApps.Styles.MetroThumb.RangeSlider.HorizontalMiddleThumb to MahApps.Styles.MetroThumb.RangeSlider.Horizontal.Middle - Rename MahApps.Styles.MetroThumb.RangeSlider.VerticalMiddleThumb to MahApps.Styles.MetroThumb.RangeSlider.Vertical.Middle - Rename MahApps.Styles.MetroThumb.RangeSlider.HorizontalMiddleThumb.Win10 to MahApps.Styles.MetroThumb.RangeSlider.Horizontal.Middle.Win10 - Rename MahApps.Styles.MetroThumb.RangeSlider.VerticalMiddleThumb.Win10 to MahApps.Styles.MetroThumb.RangeSlider.Vertical.Middle.Win10
…Apps.Styles.SplitButton.FocusVisualStyle
- Use MahApps.Styles.Slider.Win10 as default - Use MahApps.Styles.RangeSlider.Win10 as default
- Add Controls.MenuItem.xaml - Add Controls.Menu.xaml - Add VS/MenuItem.xaml - Add VS/ContextMenu.xaml
(GH-3587) Last changes to Styles, Themes and Templates
Is your feature request related to a problem? Please describe.
Within MA.M, there are two separate namespaces for
Theme
vsStyle
(which also contains aTheme
directory). This is not intuitive, as theTheme
Directory contains some styles (e.g.HamburgerMenu
), and the actual themes for the application are located in theStyle/Theme
directory.Describe the solution you'd like
I suggest re-ordering the name spaces as follows:
MA.M/Themes
MA.M/Styles
; include custom templates in the file with the appropriate themes (e.g.HamburgerMenuTemplate
belongs inStyles/Controls.HamburgerMenu.xaml
)This makes it much easier to find the code needed to make an update to a control for a user's personal implementation. It also makes application theme information much easier to find, as it is in the most logical location.
Additional context
N/A
Closed Issues
N/A
The text was updated successfully, but these errors were encountered: