diff --git a/src/MahApps.Metro.Samples/MahApps.Metro.Demo/ExampleViews/ButtonsExample.xaml b/src/MahApps.Metro.Samples/MahApps.Metro.Demo/ExampleViews/ButtonsExample.xaml
index c3579b923d..d7fe33f6a0 100644
--- a/src/MahApps.Metro.Samples/MahApps.Metro.Demo/ExampleViews/ButtonsExample.xaml
+++ b/src/MahApps.Metro.Samples/MahApps.Metro.Demo/ExampleViews/ButtonsExample.xaml
@@ -198,13 +198,15 @@
BasedOn="{StaticResource MahApps.Metro.Styles.ToggleSwitch}"
TargetType="{x:Type Controls:ToggleSwitch}">
+
-
+
diff --git a/src/MahApps.Metro.Samples/MahApps.Metro.Demo/ExampleViews/OtherExamples.xaml b/src/MahApps.Metro.Samples/MahApps.Metro.Demo/ExampleViews/OtherExamples.xaml
index 8b950c0604..278a166fc9 100644
--- a/src/MahApps.Metro.Samples/MahApps.Metro.Demo/ExampleViews/OtherExamples.xaml
+++ b/src/MahApps.Metro.Samples/MahApps.Metro.Demo/ExampleViews/OtherExamples.xaml
@@ -205,7 +205,7 @@
IsNavigationEnabled="{Binding ElementName=ShowNaviCheckBox, Path=IsChecked, Mode=OneWay}"
ItemTemplate="{StaticResource ImageDataTemplate}"
ItemsSource="{Binding FlipViewImages, Mode=OneWay}"
- MouseOverGlowEnabled="{Binding ElementName=ShowMouseOverCheckBox, Path=IsChecked, Mode=OneWay}"
+ MouseHoverBorderEnabled="{Binding ElementName=ShowMouseOverCheckBox, Path=IsChecked, Mode=OneWay}"
Orientation="{Binding ElementName=Orientation, Path=SelectedValue, Mode=OneWay}" />
10 5 10 5
0 5 0 0
+
+
+
+
+
+
@@ -262,23 +270,34 @@
Grid.IsSharedSizeScope="True">
-
-
-
+
+
+
+
+
+
+
+
+
-
+ ItemsSource="{Binding Source={StaticResource NumericInputValues}}" />
+
@@ -289,33 +308,33 @@
IsChecked="True" />
@@ -344,18 +363,18 @@
@@ -364,9 +383,9 @@
Margin="{StaticResource ColumnMargin}">
+ HotKey="{Binding HotKey, ValidatesOnDataErrors=True, UpdateSourceTrigger=PropertyChanged, NotifyOnValidationError=True}" />
diff --git a/src/MahApps.Metro.Samples/MahApps.Metro.Demo/MainWindow.xaml.cs b/src/MahApps.Metro.Samples/MahApps.Metro.Demo/MainWindow.xaml.cs
index 310d241bab..0409d8969c 100644
--- a/src/MahApps.Metro.Samples/MahApps.Metro.Demo/MainWindow.xaml.cs
+++ b/src/MahApps.Metro.Samples/MahApps.Metro.Demo/MainWindow.xaml.cs
@@ -4,6 +4,7 @@
#endif
using System.Windows;
using System.Windows.Controls;
+using System.Windows.Media;
using MahApps.Metro.Controls;
using MahApps.Metro.Controls.Dialogs;
using MetroDemo.ExampleWindows;
@@ -440,8 +441,9 @@ private void MenuWindowWithShadowOnClick(object sender, RoutedEventArgs e)
{
var w = this.GetTestWindow();
w.Content = new TextBlock() { Text = "Window with drop shadow", FontSize = 28, FontWeight = FontWeights.Light, VerticalAlignment = VerticalAlignment.Center, HorizontalAlignment = HorizontalAlignment.Center };
- // use this to test the obsolete under the hood code
- w.EnableDWMDropShadow = true;
+ w.BorderThickness = new Thickness(0);
+ w.BorderBrush = null;
+ w.GlowBrush = Brushes.Black;
w.Show();
}
diff --git a/src/MahApps.Metro/Actions/CloseTabItemAction.cs b/src/MahApps.Metro/Actions/CloseTabItemAction.cs
index 5c1f657e3b..b18ab5b4eb 100644
--- a/src/MahApps.Metro/Actions/CloseTabItemAction.cs
+++ b/src/MahApps.Metro/Actions/CloseTabItemAction.cs
@@ -1,7 +1,6 @@
using System;
using System.Collections;
using System.Linq;
-using System.Windows;
using System.Windows.Controls;
using MahApps.Metro.Controls;
@@ -13,34 +12,6 @@ public class CloseTabItemAction : CommandTriggerAction
private TabItem AssociatedTabItem => this.associatedTabItem ?? (this.associatedTabItem = this.AssociatedObject.TryFindParent());
- [Obsolete("This property will be deleted in the next release.")]
- public static readonly DependencyProperty TabControlProperty =
- DependencyProperty.Register(nameof(TabControl),
- typeof(TabControl),
- typeof(CloseTabItemAction),
- new PropertyMetadata(default(TabControl)));
-
- [Obsolete("This property will be deleted in the next release.")]
- public TabControl TabControl
- {
- get { return (TabControl)this.GetValue(TabControlProperty); }
- set { this.SetValue(TabControlProperty, value); }
- }
-
- [Obsolete("This property will be deleted in the next release.")]
- public static readonly DependencyProperty TabItemProperty =
- DependencyProperty.Register(nameof(TabItem),
- typeof(TabItem),
- typeof(CloseTabItemAction),
- new PropertyMetadata(default(TabItem)));
-
- [Obsolete("This property will be deleted in the next release.")]
- public TabItem TabItem
- {
- get { return (TabItem)this.GetValue(TabItemProperty); }
- set { this.SetValue(TabItemProperty, value); }
- }
-
protected override void Invoke(object parameter)
{
if (this.AssociatedObject == null || (this.AssociatedObject != null && !this.AssociatedObject.IsEnabled))
diff --git a/src/MahApps.Metro/Actions/SetFlyoutOpenAction.cs b/src/MahApps.Metro/Actions/SetFlyoutOpenAction.cs
deleted file mode 100644
index ff9a55d3a5..0000000000
--- a/src/MahApps.Metro/Actions/SetFlyoutOpenAction.cs
+++ /dev/null
@@ -1,24 +0,0 @@
-using System;
-using System.Windows;
-using System.Windows.Interactivity;
-using MahApps.Metro.Controls;
-
-namespace MahApps.Metro.Actions
-{
- [Obsolete(@"This TargetedTriggerAction will be deleted in the next release.")]
- public class SetFlyoutOpenAction : TargetedTriggerAction
- {
- public static readonly DependencyProperty ValueProperty = DependencyProperty.Register("Value", typeof(bool), typeof(SetFlyoutOpenAction), new PropertyMetadata(default(bool)));
-
- public bool Value
- {
- get { return (bool)GetValue(ValueProperty); }
- set { SetValue(ValueProperty, value); }
- }
-
- protected override void Invoke(object parameter)
- {
- ((Flyout) TargetObject).IsOpen = Value;
- }
- }
-}
diff --git a/src/MahApps.Metro/Controls/CloseCommand.cs b/src/MahApps.Metro/Controls/CloseCommand.cs
deleted file mode 100644
index 0c5c3759fb..0000000000
--- a/src/MahApps.Metro/Controls/CloseCommand.cs
+++ /dev/null
@@ -1,44 +0,0 @@
-using System;
-using System.Windows.Input;
-
-namespace MahApps.Metro.Controls
-{
- internal class CloseCommand : ICommand
- {
- private readonly Func