|
| 1 | +# 1.5.0 Notes |
| 2 | + |
| 3 | +## Features / Changes / Fixes |
| 4 | + |
| 5 | +- If a dialog is shown in a window other than the MainWindow, `OwningWindow` will be used if available to detect the theme. [#2840](https://github.com/MahApps/MahApps.Metro/pull/2840) |
| 6 | +- Fixed an issue for `DateTimePicker` when the time is cleared if a date is selected [#2837](https://github.com/MahApps/MahApps.Metro/pull/2837) |
| 7 | +- `HamburgerMenu` changes and improvements |
| 8 | + + New `HamburgerMenuIconItem` helper class which can be used to put any object icon to the menu item. |
| 9 | + + Fixed tab order and keyboard selection. |
| 10 | + + `ItemCommand` and `OptionsItemCommand` |
| 11 | + + `Command` for `HamburgerMenuItem` |
| 12 | + + New property `PaneForeground` for HamburgerMenu and Splitview and new Foreground/Background brushes `MahApps.Metro.HamburgerMenu.PaneBackgroundBrush`, `MahApps.Metro.HamburgerMenu.PaneForegroundBrush` |
| 13 | + + Update scroll behavior to match with the UWPCommunityToolkit (see UWP Toolkit Issue [#954](https://github.com/Microsoft/UWPCommunityToolkit/issues/954)). |
| 14 | + * Add a new dependency property `VerticalScrollBarOnLeftSide` to show the vertical scrollbar on the left side |
| 15 | + * Use a disappearing ScrollViewer |
| 16 | + + Add `HamburgerVisibility` property [UWPCommunityToolkit #1020](https://github.com/Microsoft/UWPCommunityToolkit/pull/1020) |
| 17 | + + Set `Content` for `HamburgerMenu` only if one of the inner ListBox controls has a selected item. |
| 18 | + + New `HamburgerMenuHeaderTemplate` property to set a header right of the HamburgerMenu button. [@SilverDragon135](https://github.com/SilverDragon135) [#2917](https://github.com/MahApps/MahApps.Metro/pull/2917) |
| 19 | + + Implement the interface `ICommandSource` and handle Command binding change to hook or unhook command executable. |
| 20 | +  |
| 21 | + + Add `MahApps.Metro.Styles.HamburgerMenu` style key to the HamburgerMenu. |
| 22 | +- If `ShowInTaskbar = false`, when double click on the title bar of a minimized window, the window will be restored instead of maximized. [#2854](https://github.com/MahApps/MahApps.Metro/pull/2854) [@hausenism](https://github.com/hausenism) |
| 23 | +- Fix WindowCommands tab stop bug [#2858](https://github.com/MahApps/MahApps.Metro/pull/2858) [@neilt6](https://github.com/neilt6) |
| 24 | +- Don't overwrite cancellation for window close event [#2868](https://github.com/MahApps/MahApps.Metro/pull/2868) [@batzen](https://github.com/batzen) |
| 25 | +- Expose close button margin for `MetroTabItem` [#2803](https://github.com/MahApps/MahApps.Metro/pull/2803) |
| 26 | +- New `Badged` control. Thx to [@ButchersBoy](https://github.com/ButchersBoy) |
| 27 | + |
| 28 | +- The `ControlsHelper.CornerRadius` can now used for `SplitButton` and `DropDownButton`. |
| 29 | +- New underline types for `TabControl` and `MetroTabControl` [#2902](https://github.com/MahApps/MahApps.Metro/pull/2902) |
| 30 | + + Adds a new `Underlined` attached property to `TabControlHelper` which controls the type of the underline type. The old `IsUnderlined` property is now obsolete. |
| 31 | + ``` |
| 32 | + /// <summary> |
| 33 | + /// Specifies the underline position of a TabControl. |
| 34 | + /// </summary> |
| 35 | + public enum UnderlinedType |
| 36 | + { |
| 37 | + None, // nothing |
| 38 | + TabItems, // the old behavior with `IsUnderlined="True"` |
| 39 | + SelectedTabItem, // selected TabItem underlined + underline hover effect for unselected items |
| 40 | + TabPanel // underlined TabPanel and selected/hovered TabItem |
| 41 | + } |
| 42 | + ``` |
| 43 | + + Add also new `Brush` attached properties to enable easy changing the underline brushes. |
| 44 | + ``` |
| 45 | + TabControlHelper.UnderlineBrush |
| 46 | + TabControlHelper.UnderlineSelectedBrush |
| 47 | + TabControlHelper.UnderlineMouseOverBrush |
| 48 | + TabControlHelper.UnderlineMouseOverSelectedBrush |
| 49 | + ``` |
| 50 | +  |
| 51 | +- New underline types also for `AnimatedTabControl` and `AnimatedSingleRowTabControl` styles and for `MetroAnimatedTabControl` and `MetroAnimatedSingleRowTabControl` [#2905](https://github.com/MahApps/MahApps.Metro/pull/2905) |
| 52 | +- Fix / improve `AnimatedSingleRowTabControl` styles |
| 53 | + + Fix template changing (doesn't works if TabStripPlacement was changed) |
| 54 | + + Disappear arrow repeat buttons |
| 55 | + + Use brush, hover and pressed brush like normal ScrollViewer |
| 56 | +- Fixed `ClearTypeHint` and wrong `Margin` for `ComboBox` and `ComboBoxItem` [#2903](https://github.com/MahApps/MahApps.Metro/issues/2903) |
| 57 | +- Fix `ListView` style issues |
| 58 | + + Use accent brush for highlighted border |
| 59 | + + Fix SnapsToDevicePixels usage |
| 60 | + + Fix disabled foreground brush |
| 61 | +- Fix SnapsToDevicePixels usage for `CheckBox` |
| 62 | +- `Flyout` changes and improvements |
| 63 | + + Fix `Flyout` modal usage. All title bar commands are now hidden if a `Flyout` is modal. |
| 64 | + + Fix background and foreground usage of controls in a `Flyout` if user changes theme on the fly. [#2337](https://github.com/MahApps/MahApps.Metro/issues/2337) The `Flyout` has a different background, so we should override some background and foreground brushes and colors. |
| 65 | + + Change `Flyout` from `ContentControl` to `HeaderedContentControl` which has the correct properties for headers. |
| 66 | + + Enable `Border` for `Flyout` |
| 67 | +- Use `GrayBrush7` and `WhiteBrush` for menu `Separator` instead fixed colors. |
| 68 | +- Fix BindingExpression at `DropDownButton`. Don't set `ItemTemplate`to `ContentTemplate`, `ItemTemplateSelector` to `ContentTemplateSelector` and `ItemStringFormat` to `ContentStringFormat`. This breaks the whole usage of the content stuff and shows a BindingExpression path error. [#2883](https://github.com/MahApps/MahApps.Metro/issues/2883) |
| 69 | +- New `UsernameCharacterCasing` property for `LoginDialogSettings` [#2683](https://github.com/MahApps/MahApps.Metro/issues/2683) |
| 70 | +- Fix `SelectionChanged` event of `SplitButton` which fires now only once. |
| 71 | +- Add `TransitionCompleted` event to `MetroContentControl` and `WindowTransitionCompleted` event to `MetroWindow` which will be fired after the loaded Storyboard is completed. |
| 72 | +- Add new `WatermarkAlignment` attached property to `TextBoxHelper` which indicates the horizontal alignment of the watermark (incl. floating watermark). |
| 73 | + |
| 74 | +- Add new `DataGridHelper` with `EnableCellEditAssist` attached property which enabled direct editing for CheckBox and ComboBox cells. (default to false) Thx to [@ButchersBoy](https://github.com/ButchersBoy) (taken from [MaterialDesignInXamlToolkit](https://github.com/ButchersBoy/MaterialDesignInXamlToolkit)) |
| 75 | +
|
| 76 | +## Closed Issues |
| 77 | +
|
| 78 | +- [#2835](https://github.com/MahApps/MahApps.Metro/issues/2835) ShowMessageAnsync() causes exception |
| 79 | +- [#2848](https://github.com/MahApps/MahApps.Metro/issues/2848) HamburgerMenu Command MVVM |
| 80 | +- [#2866](https://github.com/MahApps/MahApps.Metro/issues/2866) Validation-Popup won't be opened after closing by mouse left button down |
| 81 | +- [#2870](https://github.com/MahApps/MahApps.Metro/issues/2870) MahApps Not Thread Safe But Should Be [Test Case] |
| 82 | +- [#2877](https://github.com/MahApps/MahApps.Metro/issues/2877) Can't bind to ShowTitleBar |
| 83 | +- [#2871](https://github.com/MahApps/MahApps.Metro/issues/2871) SplitButton CornerRadius |
| 84 | +- [#2862](https://github.com/MahApps/MahApps.Metro/issues/2862) Flyout close button icon is incorrect when setting flow direction right to left |
| 85 | +- [#1938](https://github.com/MahApps/MahApps.Metro/issues/1938) Problem with window size |
| 86 | +- [#2066](https://github.com/MahApps/MahApps.Metro/issues/2066) On Windows 8 a window with height 23px resizes to 39px after dragging |
| 87 | +- [#2792](https://github.com/MahApps/MahApps.Metro/issues/2792) Win32Exception on closing window |
| 88 | +- [#2886](https://github.com/MahApps/MahApps.Metro/issues/2886) NumericUpDown: HasDecimals=False & using a bound StringFormat allows to enter a decimal point [@davericardo](https://github.com/davericardo) |
| 89 | +- [#2885](https://github.com/MahApps/MahApps.Metro/issues/2885) [Bug] Badged Control Causes Window Loading to Hang |
| 90 | +- [#2895](https://github.com/MahApps/MahApps.Metro/issues/2895) [RFC] [Enhancement] Proposed TabControlHelper.IsUnderlined Change |
| 91 | +- [#2903](https://github.com/MahApps/MahApps.Metro/issues/2903) 1 pixel space between ComboBoxItems closes ComboBox |
| 92 | +- [#2841](https://github.com/MahApps/MahApps.Metro/issues/2841) Modal flyout issue |
| 93 | +- [#2337](https://github.com/MahApps/MahApps.Metro/issues/2337) Flyout style from Accent to Light is not working |
| 94 | +- [#2883](https://github.com/MahApps/MahApps.Metro/issues/2883) Can Reproduce BindingExpression path error: ... property not found ... On DropDownButton |
| 95 | +- [#2683](https://github.com/MahApps/MahApps.Metro/issues/2683) [Question] Force TextBox uppercase in ShowLoginAsync |
| 96 | +- [#2857](https://github.com/MahApps/MahApps.Metro/issues/2857) HamburgerMenuItem Scrolling |
| 97 | +- [#1835](https://github.com/MahApps/MahApps.Metro/issues/1835) Window animation interferes with WindowsFormsHost positioning |
| 98 | +- [#2917](https://github.com/MahApps/MahApps.Metro/pull/2917) Hamburger Header Templating |
| 99 | +- [#2332](https://github.com/MahApps/MahApps.Metro/issues/2332) Calendar ignores IsTodayHighlighted property |
| 100 | +- [#2434](https://github.com/MahApps/MahApps.Metro/issues/2434) DataGridNumericUpDownColumn foreground color |
| 101 | +- [#2627](https://github.com/MahApps/MahApps.Metro/issues/2627) Inconsistent FloatingWatermark Alignment |
| 102 | +- [#2865](https://github.com/MahApps/MahApps.Metro/issues/2865) [Feature request]Enable/Disable of Hamburger Menu Item |
| 103 | +- [#2880](https://github.com/MahApps/MahApps.Metro/issues/2880) RangeSlider: Inadequate snapping to ticks |
| 104 | +- [#2812](https://github.com/MahApps/MahApps.Metro/issues/2812) Font family in Flyout.xaml and MetroNavigationWindow.xaml |
| 105 | +- [#2764](https://github.com/MahApps/MahApps.Metro/issues/2764) Flyout - Border not shown |
| 106 | +- [#2515](https://github.com/MahApps/MahApps.Metro/issues/2515) NumericUpDown Value not displayed |
| 107 | +- [#1929](https://github.com/MahApps/MahApps.Metro/issues/1929) MetroDataGridCheckBox style prevents the CellEditEnding |
0 commit comments