MahApps.Metro 1.1.0
Notes
This is a bug fix and fetaure release of MahApps.Metro.
Features
- It's now possible to get an opened dialog from a MetroWindow #1739
- Allow the user to disable the window dragging #1669
- Dialogs can now use the
ColorScheme = MetroDialogColorScheme.Inverted - Add
MouseOverGlowEnabledtoFlipView - Back/Forward Buttons now enabled/disabled instead visible/or not
AreAnimationsEnabledproperty forFlyoutto show theFlyoutdirectly or with animationMaximumBodyHeightforMetroDialogSettings, so we can get aScrollViewerfor tall dialog contentIsMinButtonEnabled,IsMaxRestoreButtonEnabledandIsCloseButtonEnabledto enable/disable the window buttons atWindowButtonCommands@romerod #1562IdealForegroundDisabledBrushto set the foreground for disabled window buttons atWindowButtonCommands#1581MetroWindowanimates now on minimize/maximize/restore window action (limited by ignoring the taskbar) #1756- It's now possible to put the MahApps styles only in a window and the main app will remain unaffected (all buttons and commands will be styled as good as well.) #1777
- The underline position is based on
TabstripPlacementproperty ofTabControl. (ControlsHelper.IsUnderlined) #1737 #1478 - It's now possible to upgrade the
WindowPlacementSettingson version change (minor breaking change) #1787 #1736 - New property
ShowSeparatorsfor WindowCommands, so it's possible to hide theWindowCommandsseperators MetroTabItemnow supports theTabControlHelper.IsUnderlinedattached property #1795 #1796- Flyout focus enhancement #1805
It's now possible to setFocusedElementandAllowFocusElementto enable focusing mechanism- If
AllowFocusElementis set toTruetheFlyouttries to focus the first focusable element, if there is no focusable element, it tries to focus an element in the header section. - If
FocusedElementis set theFlyoutfocus this element.
- If
- Better default CapsLock icon for
PasswordBoxSHA - Add a callback for
ShowIconOnTitleBar#1810, so we can hide the icon e.g. after window is loaded #1688 - New
CornerRadiuisproperty forMetroButtonandToggleButtonstyle SHA, SHA, SHA
Changes
- Simplify styles (backwards-compatible changes and fixes, e.g. disabled style) for
PasswordBox,TextBox,DatePicker,CheckBox,RadioButton,SquareButton,MetroButton,ToggleButton,ComboBox,ComboBoxItem - Use
IdealForegroundColorforAccentSelectedColorBrush(for better results inListBox,ListView,DataGridandComboBox)
Bugfixes
- Fixed maximize button path only displays partially when using SaveWindowPosition #1580 #1693
- Fixed background of ComboBox #1713
- Use
UseLayoutRoundingforMetroWindowfor better pixel stuff SHA - Fixed ideal foreground for some color styles #1748
- Fixed disabled window buttons foreground (and add
IdealForegroundDisabledBrushto handle this) #1581 - Fixed wrong max/restore button tool tip when maximized SHA
- Fixed wrong window size while moving maximized window between monitors #1275
- Fixed the cursor of the button in the
ProgressDialog#1763 - Fixed text wrapping for MessageDialog Message #1776 #1766
- Fixed missing behavior when toggle
UseNoneWindowStyleSHA - Fixed foreground color of WindowComands and WindowButtonCommands #1788 #1503
- Fixed PasswordBox with
ClearTextButtondoesnt show the button #1718 - Fixed wrong text for buttons in dialogs (it's now preserve by default) #1793 #1755
- Fixed usage of ClearTextButton: Subscribe to clear button even if control is already loaded. #1764 #1797
- Fixed SplitButton SelectedIndex and SelectedItem (binds now two way by default) #1798
- Fixed losing Window shadow [EnableDWMDropShadow] #1791 #1799
- Fixed alignment of decrement button on vertical scrollbars #1800
- Fixed non working button click action with
TextboxHelper.ClearTextButton="True"after visibilty change #1268 #1809 - Fixed CaretBrush after theme changed for
PasswordBoxSHA andDatePickerSHA - Fixed disabled
ComboBoxstyle (looks now like other controls) SHA - Fixed disabled
DatePickerstyle and wrong showing watermark SHA - Fixed wrong WindowPlacement saving with Border snaps #1811 #1814
- Fixed color disappearing for DataGrid selection #1728 #1816
- Fixed FocusVisualStyle in Flyouts (surround Flyout content with AdornerDecorator) SHA