A framework that allows developers to cobble together a better UI for their own WPF applications with minimal effort.
MIT License
Bot releases are hidden (Show)
Published by punker76 over 4 years ago
As part of this release we had 894 commits which resulted in 298 issues being closed.
Breaking Changes
Bugs
Bug Fixs
Features
Feature Requests
Improvements
Hacktoberfest
You can download this release from MahApps.Metro
Published by punker76 over 6 years ago
As part of this release we had 1 commit which resulted in 1 issue being closed.
Bug
You can download this release from MahApps.Metro
Published by punker76 over 6 years ago
As part of this release we had 2 commits which resulted in 1 issue being closed.
Bug
You can download this release from MahApps.Metro
Published by punker76 over 6 years ago
As part of this release we had 7 commits which resulted in 3 issues being closed.
Bugs
You can download this release from MahApps.Metro
Published by punker76 over 6 years ago
As part of this release we had 29 commits which resulted in 7 issues being closed.
Bugs
You can download this release from MahApps.Metro
Published by punker76 over 6 years ago
As part of this release we had 4 commits which resulted in 2 issues being closed.
Bugs
You can download this release from MahApps.Metro
Published by punker76 over 6 years ago
As part of this release we had 362 commits which resulted in 153 issues being closed.
Features / Changes / Improvements (most interesting)
MahApps.Metro.Styles.MetroWatermarkTextBlock
style to make it easier to set custom properties like FontFamily
or FontSize
for all Watermarks.WindowChrome
and related things with reference to ControlzEx
#3021
NumericUpDown
SnapToMultipleOfInterval
property for NumericUpDown
which indicates if the NumericUpDown
should round the value to the nearest possible interval when the focus moves to another element. #2952 @xxMUROxx
NumericInputMode
property with the new flag enumeration NumericInput
(default is NumericInput.All
)HasDecimals
as obsoleteNumericUpDown
, HotKeyBox
and TimerPickerBase
doesn't focus for the first time when the FocusManager will be used.ComboBox
via resource keys
ComboBoxBorderThemeThickness
(default 1)ComboBoxPopupBorderThemeThickness
(default 1)ComboBoxPopupBorderThemePadding
(default 1)GroupBox
and Expander
via resource keys
GroupBoxHeaderThemePadding
(default 4)ExpanderHeaderThemePadding
(default 2)ExpanderToggleButtonEllipseThemeSize
(default 18)Badged
control has now a different look when disabled. thx @xxMUROxx
MahApps.Metro.Brushes.Badged.DisabledBackgroundBrush
Watermark
TextBoxHelper.Watermark
for HotKeyBox
instead own DependencyProperty (marked as obsolete).TextBoxHelper.AutoWatermark
for HotKey
DependencyProperty of HotKeyBox
.TextBoxHelper.WatermarkTrimming
attached property to set the text trimming behavior to employ when (floating) watermark overflows the content area. thx to @amkuchta
TextBoxHelper.WatermarkWrapping
attached property (only for TextBox
) to set how the watermark should wrap text. Default is binded to TextWrapping
property. thx to @amkuchta
VS Theme
StandardGroupBox
styleStandardExpander
styleTabControlHelper
TabControlHelper.CloseButtonEnabled
attached property to show / hide the close button (default is true).TabControlHelper.CloseTabCommand
attached property which executes if the TabItem
will be closed.TabControlHelper.CloseTabCommandParameter
attached property which will be passed to the CloseTabCommand
.TextBoxHelper.ButtonsAlignment
support for PasswordBox
styles #3074 @waleswood
MetroHeader
control which can contains any other content and can display a header on top of this content. <Controls:MetroHeader Margin="2" Header="TextBox Header">
<Controls:MetroHeader.HeaderTemplate>
<DataTemplate>
<StackPanel VerticalAlignment="Center" Orientation="Horizontal">
<iconPacks:PackIconMaterial VerticalAlignment="Center" Kind="FaceProfile" />
<TextBlock Margin="2 0 0 0"
VerticalAlignment="Center"
Text="{Binding}" />
</StackPanel>
</DataTemplate>
</Controls:MetroHeader.HeaderTemplate>
<TextBox Text="Enabled" />
</Controls:MetroHeader>
ScrollViewerHelper
class
IsHorizontalScrollWheelEnabled
attached property. If it's set to true and a horizontal ScrollBar
is visible then the mouse wheel scrolls to left and right.VerticalScrollBarOnLeftSide
attached property from ScrollBarHelper
to ScrollViewerHelper
. ScrollBarHelper is now marked as obsolete.FlatButtonForegroundBrush
in the new MahApps.Metro.Styles.FlatButtonFocusVisualStyle
which is used now for MetroFlatButton
and MetroFlatToggleButton
PasswordBoxHelper
RevealButtonContent
and RevealButtonContentTemplate
attached propertiesDefaultRevealButtonIcon
ContentControl to RevealButtonContent
attached propertyMahApps.Metro.Styles.WindowButton.Close.Light.Win10
and MahApps.Metro.Styles.WindowButton.Close.Dark.Win10
stylesItemHelper
class with some Brush
attached properties for mouse interaction. These properties can be used with HamburgerMenuItem
, ListBoxItem
, ListViewItem
, TreeViewItem
and ComboBoxItem
.
ItemHelper.ActiveSelectionBackgroundBrush
default AccentColorBrush
ItemHelper.ActiveSelectionForegroundBrush
default AccentSelectedColorBrush
ItemHelper.DisabledBackgroundBrush
default x:Null
ItemHelper.DisabledForegroundBrush
default GrayNormalBrush
ItemHelper.DisabledSelectedBackgroundBrush
default GrayBrush7
ItemHelper.DisabledSelectedForegroundBrush
default AccentSelectedColorBrush
ItemHelper.HoverBackgroundBrush
default AccentColorBrush3
ItemHelper.HoverSelectedBackgroundBrush
default AccentColorBrush
ItemHelper.SelectedBackgroundBrush
default AccentColorBrush2
ItemHelper.SelectedForegroundBrush
default AccentSelectedColorBrush
ToggleSwitch
ContentPadding
dependency property to change the padding of the inner content in an easy way.HamburgerMenu
HamburgerListBoxItemStyle
-> HamburgerMenuItemStyle
HamburgerListBoxStyle
-> HamburgerMenuListStyle
UWPCommunityToolkit
style (update template to keep options visible)
HamburgerMenuTemplate
resource dictionaryItemContainerStyle
and OptionsItemContainerStyle
properties. This makes it easier to change the inner styles for the items (and option items)0
HamburgerMenuImageItem
: Downgrade thumbnail property from BitmapImage
to subclass ImageSource
ItemInvoked
event (as an alternative to ItemClick
and OptionsItemClick
)SelectionIndicator
(rectangle) which can be enabled with the new ShowSelectionIndicator
dependency property
HamburgerMenuSelectionIndicatorThemeWidth
default 6
HamburgerMenuSelectionIndicatorThemeHeight
default 24
FocusVisualStyle
ItemFocusVisualStyle
dependency property which will be re-created if one of these properties are changed: OpenPaneLength
, CompactPaneLength
and IsPaneOpen
. Default template is HamburgerMenuItemFocusVisualTemplate
.HamburgerMenuItem
style by setting the FocusVisualStyle
property.HamburgerMenu
resources to Control styles to allow style manipulation and fix binding expression infosPanePlacement
handling for right alignedToolTip
DependencyProperty
for HamburgerMenuItem
Dialogs
MahApps.Metro.Styles.MetroDialog
and set this as defaultBaseMetroDialog
resources to Control styles to allow easier dialog style manipulationProgressDialogController.SetProgressBarForegroundBrush(Brush)
so that you can customize a progress dialog's progress bar foreground Brush.MetroWindow
(Dialogs
)
IsAnyDialogOpen
dependency property. This property will be updated if a dialog is shown or not.OwnerCanCloseWithDialog
property at MetroDialogSettings
which can be used to handle how the owner of the dialog can be closed.IsCloseButtonEnabledWithDialog
property at MetroWindow
which indicates if the close button should be enabled or not if a dialog is shown.HandleOverlayOnHide
and HandleOverlayOnShow
methods sets the IsCloseButtonEnabledWithDialogPropertyKey
and restores focus if neededOverlayFadeIn
and OverlayFadeOut
properties to set/override the overlay fade in/out Storyboards which are used for the Dialogs
HideMetroDialogAsync
fails sometimes to close dialog (async call order)Slider
style: MahApps.Metro.Styles.Slider.Win10
MahApps.Metro.Styles.Slider.HorizontalTemplate.Win10
, MahApps.Metro.Styles.Slider.VerticalTemplate.Win10
MahApps.Metro.Styles.Slider.HorizontalTrack.Win10
, MahApps.Metro.Styles.Slider.VerticalTrack.Win10
MahApps.Metro.Styles.Slider.Thumb.Win10
Slider
style: MahApps.Metro.Styles.Slider
(mark old as obsolete)
MahApps.Metro.Styles.Slider.HorizontalTemplate
, MahApps.Metro.Styles.Slider.VerticalTemplate
MahApps.Metro.Styles.Slider.HorizontalTrack
, MahApps.Metro.Styles.Slider.VerticalTrack
MahApps.Metro.Styles.Slider.Thumb
RangeSlider
style: MahApps.Metro.Styles.RangeSlider.Win10
MahApps.Metro.Styles.RangeSlider.HorizontalTemplate.Win10
, MahApps.Metro.Styles.RangeSlider.VerticalTemplate.Win10
MahApps.Metro.Styles.Slider.HorizontalTrack.Win10
, MahApps.Metro.Styles.Slider.VerticalTrack.Win10
MahApps.Metro.Styles.Slider.Thumb.Win10
, MahApps.Metro.Styles.RangeSlider.HorizontalMiddleThumb.Win10
, MahApps.Metro.Styles.RangeSlider.VerticalMiddleThumb.Win10
RangeSlider
style: MahApps.Metro.Styles.RangeSlider
SliderHelper
brush properties also for RangeSlider
MahApps.Metro.Styles.RangeSlider.HorizontalMiddleThumb
, MahApps.Metro.Styles.RangeSlider.VerticalMiddleThumb
MetroThumb
instead Thumb
ReservedSpace
for all TickBar
controls instead Margin
SliderHelper
: Add new attached properties for all possible Brushes
SliderHelper.EnableMouseWheel
and SliderHelper.ChangeValueBy
for RangeSlider
too.Slider
brushes
SliderHelper.ThumbFillBrush
default AccentBaseColorBrush
SliderHelper.ThumbFillHoverBrush
default GrayBrush3
SliderHelper.ThumbFillPressedBrush
default AccentBaseColorBrush
SliderHelper.ThumbFillDisabledBrush
default GrayBrush1
SliderHelper.TrackFillBrush
default GrayBrush2
SliderHelper.TrackFillHoverBrush
default AccentBaseColorBrush
SliderHelper.TrackFillPressedBrush
default GrayBrush6
SliderHelper.TrackFillDisabledBrush
default GrayBrush3
SliderHelper.TrackValueFillBrush
default AccentBaseColorBrush
SliderHelper.TrackValueFillHoverBrush
default GrayBrush6
SliderHelper.TrackValueFillPressedBrush
default GrayBrush6
SliderHelper.TrackValueFillDisabledBrush
default GrayBrush6
Slider
brushes
SliderHelper.ThumbFillBrush
default GrayBrush2
SliderHelper.ThumbFillHoverBrush
default GrayBrush3
SliderHelper.ThumbFillPressedBrush
default AccentColorBrush
SliderHelper.ThumbFillDisabledBrush
default GrayBrush5
SliderHelper.TrackFillBrush
default GrayBrush3
SliderHelper.TrackFillHoverBrush
default AccentColorBrush
SliderHelper.TrackFillPressedBrush
default GrayBrush2
SliderHelper.TrackFillDisabledBrush
default GrayBrush3
SliderHelper.TrackValueFillBrush
default AccentColorBrush
SliderHelper.TrackValueFillHoverBrush
default GrayBrush6
SliderHelper.TrackValueFillPressedBrush
default GrayBrush6
SliderHelper.TrackValueFillDisabledBrush
default GrayBrush6
DatePicker
ControlsHelper.IsReadOnly
. This property sets the IsReadOnly
property on the inner TextBox
and the IsEnabled
on the inner popup button.Strong naming
MahApps will no longer be strong-named beginning with this version. #3029
Why?
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 from Daniel Plaisted @dsplaisted or Strong-Name Signer from Werner van Deventer @brutaldev.
More informations about the reason of this decision can be found here:
Commits without PRs/Issues
SpellCheck.IsEnabled
changes from MaterialDesignInXamlToolkit
@ButchersBoy #650 Removes the extra hidden classes and enables flexible style changes, it's more WPF now.CalendarDayButton
and CalendarButton
from Calendar
.MetroProgressBar
MetroProgressBar
does not work inside ControlTemplateGlowWindowBehavior
ResizeBorderThickness
must also be set to 0 on maximizePropertyChangeNotifier
from ControlzEx
ResizeBorderThickness
as it's handled by ControlzEx
ComboBoxItem
, if a ComboBox
is inside a ContentControl
.FlipView
: Bind ItemStringFormat
to ContentStringFormat
TimePicker
and DateTimePicker
after changing the cultureDialogTitleFontSize
and DialogMessageFontSize
via DynamicResource at the base MetroDialog styleHorizontalScrollBarVisibility
and VerticalScrollBarVisibility
for HotKeyBox
and NumericUpdDown
to Hidden, cause the inner TextBox has this as default tooSlider
: remove linear gradient brush from horizontal and vertical track value style. RangeSlider
: fix margin of the middle thumb.Bugs
Features
Feature Requests
You can download this release from MahApps.Metro
Published by punker76 almost 7 years ago
pre-release notes
Published by punker76 about 7 years ago
pre-release notes
Published by punker76 about 7 years ago
pre-release notes
Published by punker76 over 7 years ago
OwningWindow
will be used if available to detect the theme. #2840
DateTimePicker
when the time is cleared if a date is selected #2837
HamburgerMenu
changes and improvements
HamburgerMenuIconItem
helper class which can be used to put any object icon to the menu item.ItemCommand
and OptionsItemCommand
Command
for HamburgerMenuItem
PaneForeground
for HamburgerMenu and Splitview and new Foreground/Background brushes MahApps.Metro.HamburgerMenu.PaneBackgroundBrush
, MahApps.Metro.HamburgerMenu.PaneForegroundBrush
VerticalScrollBarOnLeftSide
to show the vertical scrollbar on the left sideHamburgerVisibility
property UWPCommunityToolkit #1020
Content
for HamburgerMenu
only if one of the inner ListBox controls has a selected item.HamburgerMenuHeaderTemplate
property to set a header right of the HamburgerMenu button. @SilverDragon135 #2917
ICommandSource
and handle Command binding change to hook or unhook command executable.MahApps.Metro.Styles.HamburgerMenu
style key to the HamburgerMenu.ShowInTaskbar = false
, when double click on the title bar of a minimized window, the window will be restored instead of maximized. #2854 @hausenism
MetroTabItem
#2803
Badged
control. Thx to @ButchersBoyControlsHelper.CornerRadius
can now used for SplitButton
and DropDownButton
.TabControl
and MetroTabControl
#2902
Underlined
attached property to TabControlHelper
which controls the type of the underline type. The old IsUnderlined
property is now obsolete./// <summary>
/// Specifies the underline position of a TabControl.
/// </summary>
public enum UnderlinedType
{
None, // nothing
TabItems, // the old behavior with `IsUnderlined="True"`
SelectedTabItem, // selected TabItem underlined + underline hover effect for unselected items
TabPanel // underlined TabPanel and selected/hovered TabItem
}
Brush
attached properties to enable easy changing the underline brushes.TabControlHelper.UnderlineBrush
TabControlHelper.UnderlineSelectedBrush
TabControlHelper.UnderlineMouseOverBrush
TabControlHelper.UnderlineMouseOverSelectedBrush
AnimatedTabControl
and AnimatedSingleRowTabControl
styles and for MetroAnimatedTabControl
and MetroAnimatedSingleRowTabControl
#2905
AnimatedSingleRowTabControl
styles
ClearTypeHint
and wrong Margin
for ComboBox
and ComboBoxItem
#2903
ListView
style issues
CheckBox
Flyout
changes and improvements
Flyout
modal usage. All title bar commands are now hidden if a Flyout
is modal.Flyout
if user changes theme on the fly. #2337 The Flyout
has a different background, so we should override some background and foreground brushes and colors.Flyout
from ContentControl
to HeaderedContentControl
which has the correct properties for headers.Border
for Flyout
GrayBrush7
and WhiteBrush
for menu Separator
instead fixed colors.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
UsernameCharacterCasing
property for LoginDialogSettings
#2683
SelectionChanged
event of SplitButton
which fires now only once.TransitionCompleted
event to MetroContentControl
and WindowTransitionCompleted
event to MetroWindow
which will be fired after the loaded Storyboard is completed.WatermarkAlignment
attached property to TextBoxHelper
which indicates the horizontal alignment of the watermark (incl. floating watermark).DataGridHelper
with EnableCellEditAssist
attached property which enabled direct editing for CheckBox and ComboBox cells. (default to false) Thx to @ButchersBoy (taken from MaterialDesignInXamlToolkit)Published by punker76 over 7 years ago
Published by punker76 over 7 years ago
HotKeyBox
(thx @thoemmi)ButtonHelper.PreserveTextCase
, ButtonHelper.CornerRadius
and ControlsHelper.ButtonWidth
SelectedDate
is set to the DisplayDate
if the SelectedDate
is DateTime.MinValue
. This issue appears when binding to a property of DateTime and the date is DateTime.MinValue
.MetroWindow
is ignoring the Taskbar and maximized. This fix and the main Taskbar z-Order issue only happens with Windows 10 anniversary update 1607. Hopefully fixed in the future. #2780
Published by punker76 almost 8 years ago
Published by punker76 almost 8 years ago
Don't focus flyout on close #2671 (@ButchersBoy) This hack was introduced with #1805 which was noticed by manual testing.
Don't focus the FlyoutsControl
Fix another TopMost
issue: If the window is top most and you switch to another window the top most will be gone.
Change icon for TimePicker #2700 (@p76984275)
Icon scaling #2667 (@thoemmi)
IconScalingMode
to MetroWindow. It's forwarded to MultiFrameImage.MultiFrameImageMode
to set the icon scaling.
MultiFrameImageMode.ScaleDownLargerFrame
MultiFrameImageMode.NoScaleSmallerFrame
Changes for DateTimePicker
and TimePicker
#2710
DateTimePicker.SelectedDate
to BindsTwoWayByDefault
. The reason is that we do not have to use Mode=TwoWay explicit, and DatePicker.SelectedDate has BindsTwoWayByDefault too.null
but 00:00:00
and 0001.01.01 00.00.00
respectivelyTimePicker
#2700 (@p76984275)DateTimePicker
and TimePicker
on lost focus. Fix also Shift+Tab focus moving.New SplitView
and HamburgerMenu
control #2704
SplitView
source comes from the UniversalWPF
GitHub repo (from @dotMorten) with some changes from @Evangelink and @punker76.HamburgerMenu
source comes from the UWPCommunityToolkit
GitHub repo.New dependency properties for MetroWindow
to set the brush and opacity for the overlay if a dialog is shown.
OverlayBrush
sets the brush used for the dialog overlay.OverlayOpacity
sets the opacity used for the dialog overlay (0 = disabled, 1 = full overlay).The TextBox
's with the styles MetroButtonTextBox
and SearchMetroTextBox
can now use the button also if IsReadOnly="True"
(only if the button command is set)
New AutoWatermark
attached property at TextBoxHelper
#2722 (@xxMUROxx) which is able to get the DisplayAttribute
from the bound property in following cases:
"{Binding Path=Property}"
"{Binding Path=Property.SubProperty}"
"{Binding Path=CollectionProperty}"
"{Binding Path=CollectionProperty[0].SubProperty}"
"{Binding Path=CollectionProperty[0]}"
TextBox
, ComboBox
, NumericUpDown
, DatePicker
, TimePicker
and DateTimePicker
Flyout
changes for better Margin
usage
FlyoutsControl
actual width and a Margin
for the Flyout
Margin
or HorizontalContentAlignemnt
for Left/Right and VerticalContentAnlignment
for Top/Bottom Flyout
.
Margin="200 30 0 0"
and Position="Right"
Flyout with left an top MarginHorizontalContentAlignment="Stretch"
and Position="Right"
Flyout which covers the whole windowChanged style names (and changes, see #2767) for
Button
(ButtonBase
) -> MahApps.Metro.Styles.MetroButton
ToggleButton
-> MahApps.Metro.Styles.MetroToggleButton
Fixed Expander
closing animation and make it possible to change both animations (expand and collapse). #2769 (@ Alkalinee)
Updated TabControl
and TabItem
style for VS #2768
TextBox
ContextMenu changes #2772, #2758 by @Deadpikle
<TextBox Text="Yeahh">
<TextBox.ContextMenu>
<ContextMenu>
<MenuItem Header="This is only a Test-Item" />
</ContextMenu>
</TextBox.ContextMenu>
</TextBox>
<TextBox Margin="{StaticResource ControlMargin}"
Controls:TextBoxHelper.IsSpellCheckContextMenuEnabled="True"
Text="Enabled">
<TextBox.ContextMenu>
<ContextMenu>
<MenuItem Header="This is only a Test-Item" />
</ContextMenu>
</TextBox.ContextMenu>
</TextBox>
<TextBox Controls:TextBoxHelper.ClearTextButton="True"
Controls:TextBoxHelper.UseFloatingWatermark="True"
Controls:TextBoxHelper.Watermark="Watermark">
<TextBox.ContextMenu>
<ContextMenu>
<MenuItem Header="Custom Item" />
<Separator />
<MenuItem Style="{DynamicResource MetroMenuItem}" Command="ApplicationCommands.Cut" />
<MenuItem Style="{DynamicResource MetroMenuItem}" Command="ApplicationCommands.Copy" />
<MenuItem Style="{DynamicResource MetroMenuItem}" Command="ApplicationCommands.Paste" />
</ContextMenu>
</TextBox.ContextMenu>
</TextBox>
CustomDialog
improvements #2775
ShowMetroDialogAsync
to create and show custom dialogs (self created dialogs which are inherited from CustomDialog
)// create and show a new custom dialog of the given type with the default dialog settings
var customBaseMetroDialog = await this.ShowMetroDialogAsync<CustomBaseMetroDialog>();
// create and show a new custom dialog of the given type with own settings
var customBaseMetroDialog = await this.ShowMetroDialogAsync<CustomBaseMetroDialog>(this.metroDialogSettings);
ShowMetroDialogAsync
method// create and show custom dialog with default settings
await this.ShowMetroDialogAsync(new CustomBaseMetroDialog());
// create and show custom dialog with own settings
await this.ShowMetroDialogAsync(new CustomBaseMetroDialog(this.metroDialogSettings));
// or
await this.ShowMetroDialogAsync(new CustomBaseMetroDialog(this, this.metroDialogSettings));
protected override MetroDialogSettings ConfigureSettings(MetroDialogSettings settings)
{
return new MyCustomDialogSettings();
}
<dialogs:CustomDialog x:Class="ShowMetroDialogAsyncIssue.CustomBaseMetroDialog"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:dialogs="clr-namespace:MahApps.Metro.Controls.Dialogs;assembly=MahApps.Metro"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
mc:Ignorable="d"
d:DesignHeight="300" d:DesignWidth="300"
Title="CustomBaseMetroDialog">
<StackPanel>
<TextBlock Text="This is a custom dialog based on BaseMetroDialog" />
<Button Click="Close_OnClick">Close</Button>
</StackPanel>
</dialogs:CustomDialog>
namespace ShowMetroDialogAsyncIssue
{
using System.Windows;
using MahApps.Metro.Controls;
using MahApps.Metro.Controls.Dialogs;
public partial class CustomBaseMetroDialog : CustomDialog
{
public CustomBaseMetroDialog()
{
InitializeComponent();
}
public CustomBaseMetroDialog(MetroDialogSettings settings) : base(settings)
{
InitializeComponent();
}
public CustomBaseMetroDialog(MetroWindow parentWindow, MetroDialogSettings settings) : base(parentWindow, settings)
{
InitializeComponent();
}
private void Close_OnClick(object sender, RoutedEventArgs e)
{
(this.OwningWindow ?? (MetroWindow)Application.Current.MainWindow).HideMetroDialogAsync(this);
}
}
}
Published by punker76 about 8 years ago
DateTimePicker
and TimePicker
controls #2299 #2510 (@xxMUROxx)HotKeyBox
#2322 (@thoemmi)LoginDialog
#2308 #2305 (@manekovskiy)IconPacks
for MahApps: PackIconMaterial
, PackIconModern
, PackIconFontAwesome
and PackIconEntypo
#2328 availabe at MahApps.Metro.IconPacks
<iconPacks:PackIconMaterial Kind="EmoticonCool" Height="32" Width="32" />
<iconPacks:PackIconModern Kind="Cupcake" Height="24" Width="24" />
<iconPacks:PackIconFontAwesome Kind="FontAwesome" Height="16" Width="16" />
<iconPacks:PackIconEntypo Kind="ThumbsUp" />
Auto Close
feature for Flyout
#2228 #1710 (@Sikta)
IsAutoCloseEnabled
to trueAutoCloseInterval
(default 5000 ms)PasswordBoxBindingBehavior
and IsWaitingForData
#2355
StylizedBehaviors
should be detached on unloadPasswordBoxBindingBehavior
, it doesn't work e.g. in TabControl TabItemsIsWaitingForData
for MetroButtonTextBox
, MetroPasswordBox
, MetroButtonPasswordBox
, MetroButtonRevealedPasswordBox
Eye
and ClearTextButton feature for MetroButtonRevealedPasswordBox
ContentStringFormat
TemplateBinding to ToolTip #2359 (@nrpog) #2363ControlsHelper.ButtonWidth
for ComboBox
and other stuff #2365
ChromelessButtonStyle
Padding to 0ButtonContentTemplate
in TextBoxHelper
IsPressed
, IsMouseOver
)MetroComboBoxDropDownToggleButtonStyle
for ComboBox
toggle buttonEllipseDiameterScale
to ProgressRing
#2204 #2382 (@petvetbr)WindowButtonCommands
enhancements #2378
MahApps.Metro.Styles.WindowButtonCommands.Win10
and MahApps.Metro.Templates.WindowButtonCommands.Win10
Flyouts
and NumericUpDown
#2381 #2166 (@petvetbr)DialogTitleFontSize
and DialogMessageFontSize
TextButton
in TextBoxHelper which handles the visibility of the button in MetroButtonPasswordBox
and MetroButtonTextBox
styles #2387ToggleSwitch
and ToggleSwitchButton
#2410
ToggleSwitch
is now inherited from HeaderedContentControl
HeaderFontFamily
for ToggleSwitch
MahApps.Metro.Styles.ToggleSwitchButton.Win10
, MahApps.Metro.Styles.ToggleSwitch.Win10
MahApps.Metro.Styles.ToggleSwitchButton
, MahApps.Metro.Styles.ToggleSwitch
ToggleSwitchFontFamily.Win10
, ToggleSwitchHeaderFontFamily.Win10
ToggleSwitchFontSize.Win10
, ToggleSwitchHeaderFontSize.Win10
IsPressed
stateMahApps.Metro.Brushes.ToggleSwitchButton.PressedBrush.Win10
MahApps.Metro.Brushes.ToggleSwitchButton.OffBorderBrush.Win10
MahApps.Metro.Brushes.ToggleSwitchButton.OffMouseOverBorderBrush.Win10
MahApps.Metro.Brushes.ToggleSwitchButton.OffDisabledBorderBrush.Win10
MahApps.Metro.Brushes.ToggleSwitchButton.OffSwitchBrush.Win10
MahApps.Metro.Brushes.ToggleSwitchButton.OnSwitchBrush.Win10
MahApps.Metro.Brushes.ToggleSwitchButton.OnSwitchDisabledBrush.Win10
MahApps.Metro.Brushes.ToggleSwitchButton.OnSwitchMouseOverBrush.Win10
MahApps.Metro.Brushes.ToggleSwitchButton.ThumbIndicatorBrush.Win10
MahApps.Metro.Brushes.ToggleSwitchButton.ThumbIndicatorMouseOverBrush.Win10
MahApps.Metro.Brushes.ToggleSwitchButton.ThumbIndicatorCheckedBrush.Win10
MahApps.Metro.Brushes.ToggleSwitchButton.ThumbIndicatorPressedBrush.Win10
MahApps.Metro.Brushes.ToggleSwitchButton.ThumbIndicatorDisabledBrush.Win10
AccentBaseColor
and AccentBaseColorBrush
(full color)Flyout
changes
CloseCommandParameter
dependency propertyFlipView
changes
MouseOverGlowEnabled
is now obsolete, use MouseHoverBorderEnabled
insteadMouseHoverBorderBrush
and MouseHoverBorderThickness
dependency propertyCircularNavigation
for the FlipView
#2389BindsTwoWayByDefault
removed from IsActiveProperty
of ProgressRing
#2438 (@xxMUROxx)Caliburn.Micro
sampleTile
control: HorizontalTitleAlignment
and VerticalTitleAlignment
#2293TextBoxHelper.ButtonFontSize
#2345 Also add a new font size ClearTextButtonFontSize
(default to 16) for all 'ClearText' buttonsMetroFlatToggleButton
style like MetroFlatButton #2481 (@Koopakiller)MetroThumbContentControl
for MetroWindow
title #2487
TitleCaps
with TitleCharacterCasing
(marked as obsolete). Now title can be Upper
, Lower
or Normal
MahApps.Metro.Styles.ContentControlEx
and MahApps.Metro.Styles.MetroThumbContentControl
Flyout
improvement caused by #2485 #2523
ContentControlEx
for header, so it's now possible to use ControlsHelper
attached properties ContentCharacterCasing
, HeaderFontSize
, HeaderFontWeight
and HeaderFontStretch
ControlsHelper.HeaderMargin
to handle the Margin from Flyout sideShowDialogsOverTitleBar
for `MetroWindow? which allows showing title bar while showing dialogs (fixes #2109) #2534 (@Deadpikle)ShowModalInputExternal
, ShowModalLoginExternal
and ShowModalMessageExternal
. #2518 (@adeniltonbs)NonActiveWindowTitleColorBrush
and NonActiveBorderColorBrush
ArrowMouseOverBrush
, ArrowPressedBrush
ContentTemplate
, ContentTemplateSelector
and ContentStringFormat
for DropDownButton, if this proeprties are empty DropDownButton will be use the ItemXYZ propertiesprotected virtual void SetContextMenuPlacementTarget(ContextMenu contextMenu)
to DropDownButtonMahApps.Metro.Styles.MetroCircleButtonStyle
MahApps.Metro.Styles.MetroCircleToggleButtonStyle
MahApps.Metro.Styles.MetroCircleFocusVisual
Published by punker76 over 8 years ago
pre-release notes
Published by punker76 over 8 years ago
Published by punker76 over 8 years ago
Published by punker76 almost 9 years ago