Releases: MahApps/MahApps.Metro
MahApps.Metro 0.12
Notes
After only 2 months and nearly 300 commits, this is one of the feature-richest releases we've ever done.
This release, again, contains some breaking changes.
We try to break things now rather than later, when we release version 1.0 (which is hopefully soon).
A quick overview:
ProgressIndicator
is now removed, as it wasn't working as expected.
UseMetroProgressBar
withIsIndeterminate = True
instead, which should give a much smoother experience.- Like
ProgressIndicator
,MetroImage
has been removed because it was broken.
A better alternative is to use a simpleRectangle
, as described here - For the same reasons, the
Panorama
control has been removed.
While we have no drop-in replacement for this control, if you really want it back,
you can always submit a pull request with a better Panorama, but beware, it most likely needs a serious rewrite.
Upcoming changes:
- The
RangeSlider
control is currently being rewritten, so expect some breaking changes here.
Features
Dialog system
The dialog system has been overhauled for better extensibility.
The SimpleDialog
class now allows to create a custom dialog.
ProgressDialog
is a dialog that displays progress (duh!) inspired by Github for Windows.
InputDialog
works like the MessageDialog
but allows the user to input text.
For reference, see PR #785 , #860 and #901 .
Modal Flyouts
Just like modal dialogs, Flyouts can now be made modal by setting the IsModal = true
.
Thanks @grokys for this feature!
For reference, see PR #824
Themed Flyouts
A Flyout can now have a theme, just like MetroWindow
There are four different theme states, indicated by the FlyoutTheme
enum:
FlyoutTheme.Adapt
: The flyout will use the theme if the host windowFlyoutTheme.Inverse
: The flyout will use the inverse theme of the host windowFlyoutTheme.Dark
: Always dark. This is the default valueFlyoutTheme.Light
: Always use the light themeFlyoutTheme.Accent
: Instead of the dark/light theme, use the accent of the host window
This behavior can be set through the Theme
property
For reference, see PR #941
Expander
Added new Expander
control that can can be used to close/open for example a GroupBox
Thanks @Icehunter for this feature!
For reference, see PR #834
NumericUpDown
Implemented a NumericUpDown
control, inspired by the Callisto style.
Thanks @xxMUROxx for this feature!
New icons
Two new icons have been added to Mahapps.Metro.Resources:
- appbar_more_horizontal
- appbar_more_vertical
For reference, see PR #887
MetroNavigationWindow
Implemented a MetroNavigationWindow
. This is the re-implementation of System.Windows.Navigation.NavigationWindow in a Metro-style
For reference, see PR #801
ContentTemplateSelector support for TransitioningContentControl
.
You can now provide a ContentTemplateSelector
for the TransitioningContentControl
.
Added AccentedSquareButton and IdealForegroundColor key
- Added an AccentedSquareButton. It looks like the SquareButton except that its Background is the current Accent.
- Added an IdealForegroundColor key to every accent.
Changes
- Removed title parameter from
ShowMetroDialogAsync
#842
For reference, see PR #846
Fixes
- Fixed high GPU usage when the
MetroProgressbar
is hidden. #812 #817 - Fixed the window glow not hiding when the window is hidden #839 #843
- Fixed window not being able to have a greater width than the width of the main screen #874 #917
- Fixed
ShowWindowCommandsOnTop="False"
not working forCleanWindowStyle
#894 #896 - Fixed using GlowBrush property enables the resizing of the window #851 #896
- Fixed the ToggleSwitch's built-in Top/Left margin #878 #880
- Fixed ThemeManager's OnThemeChanged work-around conflicting with other WPF internals #923 #932
MahApps.Metro 0.11
Notes
Warning: This release has a few breaking changes.
A quick overview:
- 'Colours' -> 'Colors'
For consistency, we've chosen to rename all occurendes of 'Colours' to 'Colors' - The 'TransitioningContentControl' use now an enumeration for 'Transition'
More details here: https://github.com/MahApps/MahApps.Metro/wiki/Breaking-Changes-or-WTF-is-happening-with-the-ALPHA-version
Other things:
- You can now put all the resource dictionaries in your 'App.xaml' file
- ProgressIndicator is marked as 'Obsolete'. In future, use 'MetroProgressbar' with 'Indeterminate' set to 'true'
- Like the ProgressIndicator, the Panorama will be removed in future versions.
There is a chance that it will be rewritten and reintroduced later on. - TextBox, PasswordBox, ComboBox and DatePicker use now the Validation.ErrorTemplate for displaying errors.
The default template is ValidationErrorTemplate. - The Demo application has been completely rewritten.
Important features
- Implemented a FlipView control (#472)
- Added a glow window like Github For Windows (#347)
- Added a clean styled window (#516)
- Added message dialogs (#764)
- Added new accent colors (#681)
Fixes
- #399 - GroupBox margin incorrectly applied when floating
Pull Requests
- #391 - Added disabled VisualState for SwitchToggleButton [@zii-stefan-schweiger]
- #406 - ToggleSwitchButton: Removed accent border when unchecked [@stefan-schweiger]
- #407 - GroupBox margin fix [@punker76]
- #414 - Add a event IsOpenChanged to Flyout [@dairentech]
- #420 - Fix Window icon is too pixelated [@AleksandarDev]
- #488 - Adapt the ListViews disabled state to the ListBox disabled state [@flagbug]
- #604 - Support for smaller ProgressRings [@Cornyfisch]
As the last stable release was 8 months ago, not every feature/fix/PR is listed here.
MahApps.Metro 0.10.1
Fixes
- #215 - slider with orientation="Vertical" doesn't work
- #244 - Panaroma Problem? button inside not working well
- #253 - ToggleSwitch doesn't change between IsEnabled states
- #269 - Tile not shrinking towards center?
- #280 - Textbox corner rectangle color
- #294 - Issue #259 fix was undone in 8eda481
- #311 - Controls.xaml breaks keyboard accelerator
- #318 - Right Positioned Flyouts Do Not Show Close Arrow
- #332 - Flyout
- #356 - Wrong Size Calculation Of Grid In Flyout
- #368 - Add ToggleSwitch Focus keyboard action
- #384 - WPF .Net 4.5 App - MahApps looking for System.Windows.Interactivity 4.0
Pull Requests
- #259 - Fixed titlebar behavior [@zii-dmg]
- #273 - some style changes/bug fixes [@punker76]
- #279 - Fixed the dotted focus border that shows up on the MetroWindow [@Blooksa]
- #295 - Hidden flyout resize fix [@lukaspj]
- #297 - Add support for regular menu's [@chandramouleswaran]
- #301 - Fixes Issue #244 [@alfhenrik]
- #302 - Fixed radiobutton foreground bug [@Blooksa]
- #303 - The min/max/close buttons can be tabbed to... [@Blooksa]
- #304 - add style for virtualised ListBox [@punker76]
- #306 - The clear text button in textboxes doesn't match the textbox foreground [@Blooksa]
- #307 - VS Styles do not support horizontal scrollbars [ @larrybeall]
- #309 - Added a window for displaying all the icons in the resource assembly [@Blooksa]
- #310 - The cleartext button in the passwordbox doesn't match the one in a textbox [@Blooksa]
- #313 - Update MahApps.Metro/Styles/Controls.ContextMenu.xaml [@programatix]
- #335 - Use DockPanel in Flyouts instead of StackPanel [@EvilClosetMonkey]
- #340 - The panorama demo can be exited by pressing the escape key [@Amrykid]
- #343 - Added keys to ListBox and ListBoxItem so they can be based on [@stefan-schweiger]
- #344 - Allow Panorama to be Garbage Collected [@mrosack]
- #346 - "save window settings elsewhere" scenario [@punker76]
- #358 - Flyouts improvement [@punker76]
- #370 - Fixed issue #368 [@lmseddik]
- #386 - Adding .NET 4.5 Support [@shiftkey]
- #385 - Listview listbox item selected [@stefan-schweiger @shiftkey]