diff --git a/ExtendedWPFToolkitSolution/Src/WPFToolkit.Extended/MessageBox/MessageBox.cs b/ExtendedWPFToolkitSolution/Src/WPFToolkit.Extended/MessageBox/MessageBox.cs
index fe9a00bb..317dd405 100644
--- a/ExtendedWPFToolkitSolution/Src/WPFToolkit.Extended/MessageBox/MessageBox.cs
+++ b/ExtendedWPFToolkitSolution/Src/WPFToolkit.Extended/MessageBox/MessageBox.cs
@@ -61,21 +61,27 @@ namespace Microsoft.Windows.Controls
#region Dependency Properties
public static readonly DependencyProperty CaptionProperty = DependencyProperty.Register("Caption", typeof(string), typeof(MessageBox), new UIPropertyMetadata(String.Empty));
- ///
- /// Gets or sets the caption.
- ///
- /// The caption.
public string Caption
{
get { return (string)GetValue(CaptionProperty); }
set { SetValue(CaptionProperty, value); }
}
+ public static readonly DependencyProperty CaptionForegroundProperty = DependencyProperty.Register("CaptionForeground", typeof(Brush), typeof(MessageBox), new UIPropertyMetadata(null));
+ public Brush CaptionForeground
+ {
+ get { return (Brush)GetValue(CaptionForegroundProperty); }
+ set { SetValue(CaptionForegroundProperty, value); }
+ }
+
+ public static readonly DependencyProperty CloseButtonStyleProperty = DependencyProperty.Register("CloseButtonStyle", typeof(Style), typeof(MessageBox), new PropertyMetadata(null));
+ public Style CloseButtonStyle
+ {
+ get { return (Style)GetValue(CloseButtonStyleProperty); }
+ set { SetValue(CloseButtonStyleProperty, value); }
+ }
+
public static readonly DependencyProperty ImageSourceProperty = DependencyProperty.Register("ImageSource", typeof(ImageSource), typeof(MessageBox), new UIPropertyMetadata(default(ImageSource)));
- ///
- /// Gets or sets the message image source.
- ///
- /// The message image source.
public ImageSource ImageSource
{
get { return (ImageSource)GetValue(ImageSourceProperty); }
@@ -83,16 +89,33 @@ namespace Microsoft.Windows.Controls
}
public static readonly DependencyProperty TextProperty = DependencyProperty.Register("Text", typeof(string), typeof(MessageBox), new UIPropertyMetadata(String.Empty));
- ///
- /// Gets or sets the message text.
- ///
- /// The message text.
public string Text
{
get { return (string)GetValue(TextProperty); }
set { SetValue(TextProperty, value); }
}
+ public static readonly DependencyProperty WindowBackgroundProperty = DependencyProperty.Register("WindowBackground", typeof(Brush), typeof(MessageBox), new PropertyMetadata(null));
+ public Brush WindowBackground
+ {
+ get { return (Brush)GetValue(WindowBackgroundProperty); }
+ set { SetValue(WindowBackgroundProperty, value); }
+ }
+
+ public static readonly DependencyProperty WindowBorderBrushProperty = DependencyProperty.Register("WindowBorderBrush", typeof(Brush), typeof(MessageBox), new PropertyMetadata(null));
+ public Brush WindowBorderBrush
+ {
+ get { return (Brush)GetValue(WindowBorderBrushProperty); }
+ set { SetValue(WindowBorderBrushProperty, value); }
+ }
+
+ public static readonly DependencyProperty WindowOpacityProperty = DependencyProperty.Register("WindowOpacity", typeof(double), typeof(MessageBox), new PropertyMetadata(null));
+ public double WindowOpacity
+ {
+ get { return (double)GetValue(WindowOpacityProperty); }
+ set { SetValue(WindowOpacityProperty, value); }
+ }
+
#endregion //Dependency Properties
#endregion //Properties
diff --git a/ExtendedWPFToolkitSolution/Src/WPFToolkit.Extended/MessageBox/MessageBox.xaml b/ExtendedWPFToolkitSolution/Src/WPFToolkit.Extended/MessageBox/MessageBox.xaml
index a2cedd9a..7223ba9c 100644
--- a/ExtendedWPFToolkitSolution/Src/WPFToolkit.Extended/MessageBox/MessageBox.xaml
+++ b/ExtendedWPFToolkitSolution/Src/WPFToolkit.Extended/MessageBox/MessageBox.xaml
@@ -6,13 +6,6 @@
-
-
-
-
-
-
-
@@ -20,7 +13,7 @@
-
+
@@ -30,7 +23,7 @@
-
+
@@ -41,7 +34,8 @@
-
+
+
@@ -67,34 +61,17 @@
-
+
-
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -108,8 +85,6 @@
Opacity="1"
Data="M 2,6 C2,6 3,6 3,6 3,6 3,5 3,5 3,5 4,5 4,5 4,5 4,6 4,6 4,6 5,6 5,6 5,6 7,6 7,6 7,6 7,5 7,5 7,5 6,5 6,5 6,5 6,4 6,4 6,4 5,4 5,4 5,4 5,2 5,2 5,2 6,2 6,2 6,2 6,1 6,1 6,1 7,1 7,1 7,1 7,0 7,0 7,0 5,0 5,0 5,0 4,0 4,0 4,0 4,1 4,1 4,1 3,1 3,1 3,1 3,0 3,0 3,0 2,0 2,0 2,0 0,0 0,0 0,0 0,1 0,1 0,1 1,1 1,1 1,1 1,2 1,2 1,2 2,2 2,2 2,2 2,4 2,4 2,4 1,4 1,4 1,4 1,5 1,5 1,5 0,5 0,5 0,5 0,6 0,6 0,6 2,6 2,6 z"
Fill="White" Margin="0,0,0,1" Visibility="Collapsed" />
-
-
@@ -122,16 +97,21 @@