Skip to content

Commit e1d83ca

Browse files
committed
Merge pull request #256 from gobetti/nameof-property-wrapper
nameof(...) according to MSDN; usings removed
2 parents 49a264c + a9afc92 commit e1d83ca

File tree

1 file changed

+6
-11
lines changed

1 file changed

+6
-11
lines changed

MaterialDesignThemes.Wpf/ComboBoxPopup.cs

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
using System;
2-
using System.Collections.Generic;
3-
using System.Diagnostics;
42
using System.Linq;
5-
using System.Reflection;
6-
using System.Text;
7-
using System.Threading.Tasks;
83
using System.Windows;
94
using System.Windows.Controls;
105
using System.Windows.Controls.Primitives;
@@ -14,7 +9,7 @@ namespace MaterialDesignThemes.Wpf
149
public class ComboBoxPopup : Popup
1510
{
1611
public static readonly DependencyProperty UpContentTemplateProperty
17-
= DependencyProperty.Register(nameof(UpContentTemplateProperty),
12+
= DependencyProperty.Register(nameof(UpContentTemplate),
1813
typeof(ControlTemplate),
1914
typeof(ComboBoxPopup),
2015
new UIPropertyMetadata(null));
@@ -26,7 +21,7 @@ public ControlTemplate UpContentTemplate
2621
}
2722

2823
public static readonly DependencyProperty DownContentTemplateProperty
29-
= DependencyProperty.Register(nameof(DownContentTemplateProperty),
24+
= DependencyProperty.Register(nameof(DownContentTemplate),
3025
typeof(ControlTemplate),
3126
typeof(ComboBoxPopup),
3227
new UIPropertyMetadata(null));
@@ -38,7 +33,7 @@ public ControlTemplate DownContentTemplate
3833
}
3934

4035
public static readonly DependencyProperty DefaultContentTemplateProperty
41-
= DependencyProperty.Register(nameof(DefaultContentTemplateProperty),
36+
= DependencyProperty.Register(nameof(DefaultContentTemplate),
4237
typeof(ControlTemplate),
4338
typeof(ComboBoxPopup),
4439
new UIPropertyMetadata(null));
@@ -50,7 +45,7 @@ public ControlTemplate DefaultContentTemplate
5045
}
5146

5247
public static readonly DependencyProperty UpVerticalOffsetProperty
53-
= DependencyProperty.Register(nameof(UpVerticalOffsetProperty),
48+
= DependencyProperty.Register(nameof(UpVerticalOffset),
5449
typeof(double),
5550
typeof(ComboBoxPopup),
5651
new PropertyMetadata(0.0));
@@ -62,7 +57,7 @@ public double UpVerticalOffset
6257
}
6358

6459
public static readonly DependencyProperty DownVerticalOffsetProperty
65-
= DependencyProperty.Register(nameof(DownVerticalOffsetProperty),
60+
= DependencyProperty.Register(nameof(DownVerticalOffset),
6661
typeof(double),
6762
typeof(ComboBoxPopup),
6863
new PropertyMetadata(0.0));
@@ -74,7 +69,7 @@ public double DownVerticalOffset
7469
}
7570

7671
public static readonly DependencyProperty DefaultVerticalOffsetProperty
77-
= DependencyProperty.Register(nameof(DefaultVerticalOffsetProperty),
72+
= DependencyProperty.Register(nameof(DefaultVerticalOffset),
7873
typeof(double),
7974
typeof(ComboBoxPopup),
8075
new PropertyMetadata(0.0));

0 commit comments

Comments
 (0)