|
| 1 | +# 1.6.0 Notes |
| 2 | + |
| 3 | +## Features / Changes / Fixes |
| 4 | + |
| 5 | +- Change `IsPaneOpen` property of `HamburgerMenu` to `FrameworkPropertyMetadataOptions.BindsTwoWayByDefault`. [#2926](https://github.com/MahApps/MahApps.Metro/issues/2926) |
| 6 | +- Add ContentStringFormat / ContentTemplateSelector to ContentPresenter of `RadioButton`. [#2954](https://github.com/MahApps/MahApps.Metro/pull/2954) [@pmccowat](https://github.com/pmccowat) |
| 7 | +- Add ContentStringFormat / ContentTemplateSelector to ContentPresenter of `CheckBox`. |
| 8 | +- DisplayFormat for time and date in DateTimePicker and TimePicker [#2930](https://github.com/MahApps/MahApps.Metro/pull/2930) [@xxMUROxx](https://github.com/xxMUROxx) |
| 9 | +- Inherit FontFamily and FontSize for `CalendarDayButton` and `CalendarButton` from `Calendar`. |
| 10 | +- It is now possibile to set FontFamily and FontSize to `DateTimePicker` / `TimePicker`. [#2935](https://github.com/MahApps/MahApps.Metro/pull/2935) [@xxMUROxx](https://github.com/xxMUROxx) |
| 11 | +- New `MahApps.Metro.Styles.MetroWatermarkTextBlock` style. Makes it easier to set custom properties like FontFamily or FontSize for all Watermarks. |
| 12 | +- Enable `LayoutTransform` and `RenderTransform` on `MetroWindow` [#2991](https://github.com/MahApps/MahApps.Metro/pull/2991) [@batzen](https://github.com/batzen) |
| 13 | +- Fixing a few issues in `ThemeManager` [#2992](https://github.com/MahApps/MahApps.Metro/pull/2992) [@batzen](https://github.com/batzen) |
| 14 | + + ThemeManager did not look at merged dictionaries the way WPF did. WPF looks at them in a reverse order and so should we. |
| 15 | + + StringComparison should be OrdinalIgnoreCase |
| 16 | + + Added some missing documentation |
| 17 | + + Removed "metro" from documentation to ease sharing of code with Fluent.Ribbon |
| 18 | +- Fix WPF-BindingLeak: Bind to property of non `INotifyPropertyChanged` (`BorderThickness`) without using `BindingMode.OneTime` [#2997](https://github.com/MahApps/MahApps.Metro/pull/2997) [@xxMUROxx](https://github.com/xxMUROxx) |
| 19 | +- [2c97fd4](https://github.com/MahApps/MahApps.Metro/commit/2c97fd4e14a295b6d00a24043609d475686b41d9) Fix brushes for MetroProgressBar |
| 20 | +- [5c4471c](https://github.com/MahApps/MahApps.Metro/commit/5c4471c3a4922294662815d02ca005d9ed06d3d9) Use DynamicResource for all brushes and freeze it too. |
| 21 | +- [8c0f893](https://github.com/MahApps/MahApps.Metro/commit/8c0f893f45748b558afd6557caa8883a779ffb7e) Fix MetroProgressBar does not work inside ControlTemplate |
| 22 | +- Fix a typo that stops users from setting the `CloseButtonMargin` property of `MetroTabItem`. [#3019](https://github.com/MahApps/MahApps.Metro/pull/3019) [@5pyd3r](https://github.com/5pyd3r) |
| 23 | +- Replacing `WindowChrome` and related things with reference to `ControlzEx` [#3021](https://github.com/MahApps/MahApps.Metro/pull/3021) |
| 24 | +- Add new property `SnapToMultipleOfInterval` to `NumericUpDown` which indicates if the `NumericUpDown` should round the value to the nearest possible interval when the focus moves to another element. [#2952](https://github.com/MahApps/MahApps.Metro/issues/2952) [@xxMUROxx](https://github.com/xxMUROxx) |
| 25 | +- It's now possible to change the popup border thickness and padding for `ComboBox`. So there are 3 new resource keys added. [#3025](https://github.com/MahApps/MahApps.Metro/issues/3025) |
| 26 | + + `ComboBoxBorderThemeThickness` (default 1) |
| 27 | + + `ComboBoxPopupBorderThemeThickness` (default 1) |
| 28 | + + `ComboBoxPopupBorderThemePadding` (default 1) |
| 29 | +- It's now easier to change the header padding for `GroupBox` and `Expander`, so new resource keys are available |
| 30 | + + `GroupBoxHeaderThemePadding` (default 4) |
| 31 | + + `ExpanderHeaderThemePadding` (default 2) |
| 32 | + + `ExpanderToggleButtonEllipseThemeSize` (default 18) |
| 33 | +- Fix not updating the text of `TimePicker` and `DateTimePicker` after changing the culture. |
| 34 | +- `Badged` control has now a different look when disabled. thx [@xxMUROxx](https://github.com/xxMUROxx) |
| 35 | + + Adds new brush to light and dark themes `MahApps.Metro.Brushes.Badged.DisabledBackgroundBrush` |
| 36 | +- Don't catch `TextChangedEvent` in `NumericUpDown` [#3066](https://github.com/MahApps/MahApps.Metro/pull/3066) [@Silv3rcircl3](https://github.com/Silv3rcircl3) |
| 37 | +- `Watermark` fixes and improvements |
| 38 | + + Fix right aligned floating watermark. |
| 39 | + + Use `TextBoxHelper.Watermark` for `HotKeyBox` instead own DependencyProperty (marked as obsolete). |
| 40 | + + Allow `TextBoxHelper.AutoWatermark` for `HotKey` DependencyProperty of `HotKeyBox`. |
| 41 | + + New `TextBoxHelper.WatermarkTrimming` attached property to set the text trimming behavior to employ when (floating) watermark overflows the content area. thx to [@amkuchta](https://github.com/amkuchta) |
| 42 | + + New `TextBoxHelper.WatermarkWrapping` attached property (only for `TextBox`) to set how the watermark should wrap text. Default is binded to `TextWrapping` property. thx to [@amkuchta](https://github.com/amkuchta) |
| 43 | +- `VS Theme` changes / enhancements |
| 44 | + + Add `StandardGroupBox` style |
| 45 | + + Add `StandardExpander` style |
| 46 | + + `TabControlHelper.CloseButtonEnabled` attached property to show / hide the close button (default is true). |
| 47 | + + `TabControlHelper.CloseTabCommand` attached property which executes if the TabItem will be closed. |
| 48 | + + `TabControlHelper.CloseTabCommandParameter` attached property which will be passed to the CloseTabCommand. |
| 49 | +- Add `TextBoxHelper.ButtonsAlignment` support for `PasswordBox` styles [#3074](https://github.com/MahApps/MahApps.Metro/pull/3074) [@waleswood](https://github.com/waleswood) |
| 50 | +- New `MetroHeader` control which can contains any other content and can display a header on top of this content. |
| 51 | + |
| 52 | + |
| 53 | + ``` |
| 54 | + <Controls:MetroHeader Margin="2" Header="TextBox Header"> |
| 55 | + <Controls:MetroHeader.HeaderTemplate> |
| 56 | + <DataTemplate> |
| 57 | + <StackPanel VerticalAlignment="Center" Orientation="Horizontal"> |
| 58 | + <iconPacks:PackIconMaterial VerticalAlignment="Center" Kind="FaceProfile" /> |
| 59 | + <TextBlock Margin="2 0 0 0" |
| 60 | + VerticalAlignment="Center" |
| 61 | + Text="{Binding}" /> |
| 62 | + </StackPanel> |
| 63 | + </DataTemplate> |
| 64 | + </Controls:MetroHeader.HeaderTemplate> |
| 65 | + <TextBox Text="Enabled" /> |
| 66 | + </Controls:MetroHeader> |
| 67 | + ``` |
| 68 | +- New `ScrollViewerHelper` class |
| 69 | + + New attached property `IsHorizontalScrollWheelEnabled`. If it's set to true and a horizontal ScrollBar is visible then the mouse wheel scrolls to left and right. |
| 70 | + + Moved `VerticalScrollBarOnLeftSide` attached property from ScrollBarHelper to ScrollViewerHelper. ScrollBarHelper is now marked as obsolete. |
| 71 | + |
| 72 | +## Breaking Change |
| 73 | + |
| 74 | +MahApps will no longer be strong-named beginning with this version. [#3029](https://github.com/MahApps/MahApps.Metro/issues/3029) |
| 75 | + |
| 76 | +Why? |
| 77 | + |
| 78 | +Strong-named assemblies are only useful in some rare scenarios. If you need strong-named assembly then you can compile the source by yourself ore use the [Strong Namer](https://github.com/dsplaisted/strongnamer) from Daniel Plaisted @dsplaisted or [Strong-Name Signer](https://github.com/brutaldev/StrongNameSigner) from Werner van Deventer @brutaldev. |
| 79 | + |
| 80 | +More informations about the reason of this decision can be found here: |
| 81 | + |
| 82 | +- [Still Strong-Naming your Assemblies? You do know it’s 2016, right?](https://www.pedrolamas.com/2016/03/01/still-strong-naming-your-assemblies-you-do-know-its-2016-right/) |
| 83 | +- [XAML Behaviors UWP Managed 1.1.0](https://www.pedrolamas.com/2016/02/23/xaml-behaviors-uwp-managed-1-1-0/) |
| 84 | +- [Strong-Named Assemblies](https://docs.microsoft.com/en-us/dotnet/framework/app-domains/strong-named-assemblies) |
| 85 | + |
| 86 | +## Closed Issues |
| 87 | + |
| 88 | +- [#2926](https://github.com/MahApps/MahApps.Metro/issues/2926) IsPaneOpen property in Hamburger Menu is not properly set after opening/closing pane |
| 89 | +- [#2933](https://github.com/MahApps/MahApps.Metro/issues/2933) Hamburguer menu issue |
| 90 | +- [#2951](https://github.com/MahApps/MahApps.Metro/issues/2951) Window with showactivated=false and sizetocontent=WidthAndHeight is activated in Mahapps.Metro v1.5 |
| 91 | +- [#2958](https://github.com/MahApps/MahApps.Metro/issues/2958) NumericUpDown: If HasDecimals is set to false and StringFormat was bound, HasDecimals will be set to true after unloading and loading the control |
| 92 | +- [#2963](https://github.com/MahApps/MahApps.Metro/issues/2963) WindowCommands with ItemTemplateSelector not working |
| 93 | +- [#2956](https://github.com/MahApps/MahApps.Metro/issues/2956) property ToolTip of ProgressRing does not work |
| 94 | +- [#2938](https://github.com/MahApps/MahApps.Metro/issues/2938) DataGridNumericUpDownColumn StringFormat binding |
| 95 | +- [#2622](https://github.com/MahApps/MahApps.Metro/issues/2622) DateTimePicker - Format |
| 96 | +- [#2491](https://github.com/MahApps/MahApps.Metro/issues/2491) Question: Changing font style for watermark |
| 97 | +- [#2985](https://github.com/MahApps/MahApps.Metro/issues/2985) TimePicker 24hour format selection |
| 98 | +- [#2996](https://github.com/MahApps/MahApps.Metro/issues/2996) Mahapps window steals focus |
| 99 | +- [#3000](https://github.com/MahApps/MahApps.Metro/issues/3000) Empty Watermark leaves blank border on date time controls |
| 100 | +- [#3001](https://github.com/MahApps/MahApps.Metro/issues/3001) DatePicker padding do not work |
| 101 | +- [#2727](https://github.com/MahApps/MahApps.Metro/issues/2727) Maximizing Window Fails on Rare Occasions |
| 102 | +- [#2729](https://github.com/MahApps/MahApps.Metro/issues/2729) [Enhancement] Don't remove window border if MaxWidth/MaxHeight < Resolution on maximize |
| 103 | +- [#2855](https://github.com/MahApps/MahApps.Metro/issues/2855) Maximize Window with Animations On and Max Width/Height Fails |
| 104 | +- [#2962](https://github.com/MahApps/MahApps.Metro/issues/2962) MetroStatusBar Style and Prism RegionManager |
| 105 | +- [44c2363](https://github.com/MahApps/MahApps.Metro/commit/44c236374c2393f70338b4bdcc28050e9e7e03f4) Fix possible System.Windows.Data warning for ComboBoxItem, if a ComboBox is inside a ContentControl. |
| 106 | +- [#2983](https://github.com/MahApps/MahApps.Metro/issues/2983) NumericUpDown Internal Text Doesn't Update When Expected |
| 107 | +- [#3026](https://github.com/MahApps/MahApps.Metro/issues/3026) NumericUpDown didn't update when lost focus, StringFormat has no effect to the content string |
| 108 | +- [#2952](https://github.com/MahApps/MahApps.Metro/issues/2952) NumericUpDown snap to interval |
| 109 | +- [#3031](https://github.com/MahApps/MahApps.Metro/issues/3031) NumericUpDown do not fire at certain conditions |
| 110 | +- [#3034](https://github.com/MahApps/MahApps.Metro/issues/3034) GlowBrush="{DynamicResource AccentColorBrush}" is causing a ComponentModel Exception in UpdateCore |
| 111 | +- [#3038](https://github.com/MahApps/MahApps.Metro/issues/3038) Update from Version 0.13.1 to a higher one |
| 112 | +- [#3037](https://github.com/MahApps/MahApps.Metro/issues/3037) Should we remove install.ps1 from nuspec? |
| 113 | +- [#3025](https://github.com/MahApps/MahApps.Metro/issues/3025) ComboBox popup border thickness problem |
| 114 | +- [#3043](https://github.com/MahApps/MahApps.Metro/issues/3043) Width parse error |
| 115 | +- [#3045](https://github.com/MahApps/MahApps.Metro/issues/3045) Clicking on the "X" button added by TextBoxHelper.ClearTextButton does not clear the databinding target |
| 116 | +- [#3049](https://github.com/MahApps/MahApps.Metro/issues/3049) TimePicker fails to parse times with an AM/PM. [#3050](https://github.com/MahApps/MahApps.Metro/pull/3050) [@toddburnside](https://github.com/toddburnside) |
| 117 | +- [#3054](https://github.com/MahApps/MahApps.Metro/issues/3054) WindowsSettingBehaviour broken after using ControlzEx |
| 118 | +- [#3028](https://github.com/MahApps/MahApps.Metro/issues/3028) SaveWindowPosition causes application to crash |
| 119 | +- [#3023](https://github.com/MahApps/MahApps.Metro/issues/3023) Custom Dialog Theme Issue |
| 120 | +- [#2990](https://github.com/MahApps/MahApps.Metro/issues/2990) TextBox memory leak |
| 121 | +- [#3017](https://github.com/MahApps/MahApps.Metro/issues/3017) SplitButton with custom ItemTemplate - Source change does not always update layout |
| 122 | +- [#2977](https://github.com/MahApps/MahApps.Metro/issues/2977) Badge must have a different look when disabled |
| 123 | +- [#2937](https://github.com/MahApps/MahApps.Metro/issues/2937) Fuzzy button outline [#3064](https://github.com/MahApps/MahApps.Metro/pull/3064) [@n00bje](https://github.com/n00bje) |
| 124 | +- [#3067](https://github.com/MahApps/MahApps.Metro/issues/3067) Right aligned floating Watermark goes behind clear button |
| 125 | +- [#3068](https://github.com/MahApps/MahApps.Metro/issues/3068) AutoWatermark attached property has no effect on HotKeyBox |
| 126 | +- [#2884](https://github.com/MahApps/MahApps.Metro/issues/2884) [Feature Request] Watermark Trimming |
| 127 | +- [#2889](https://github.com/MahApps/MahApps.Metro/issues/2889) [Feature Request] Watermark Wrapping |
| 128 | +- [#3070](https://github.com/MahApps/MahApps.Metro/issues/3070) VS GroupBox style |
| 129 | +- [#957](https://github.com/MahApps/MahApps.Metro/issues/957) Expander icon in VS theme |
| 130 | +- [#1731](https://github.com/MahApps/MahApps.Metro/issues/1731) VS Theme TabItem Question |
| 131 | +- [#3009](https://github.com/MahApps/MahApps.Metro/issues/3009) Floating Watermak field doesn't fit according FontSize |
| 132 | +- [#1825](https://github.com/MahApps/MahApps.Metro/pull/1825) [WIP] Header, headers, headers |
| 133 | +- [#3078](https://github.com/MahApps/MahApps.Metro/issues/3078) Not All "Grey" Values Are Set in BaseLight/BaseDark |
| 134 | +- [#2966](https://github.com/MahApps/MahApps.Metro/issues/2966) [Only visual] PasswordBox bug |
| 135 | +- [#3086](https://github.com/MahApps/MahApps.Metro/issues/3086) NumericUpDown CornerRadius Border issue. |
| 136 | +- [#3010](https://github.com/MahApps/MahApps.Metro/issues/3010) HamburgerMenu ignores Focusable and IsHitTestVisible properties |
0 commit comments