88
99namespace ExtendedDialogBox
1010{
11- public sealed class DialogBox : DialogBoxWindow
11+
12+ partial class DialogBoxWindow
1213 {
13- internal DialogBox ( MessageBoxImage image )
14+ internal DialogBoxWindow ( MessageBoxImage image )
1415 {
1516 InitializeComponent ( ) ;
1617
@@ -41,7 +42,7 @@ private void InitControls()
4142
4243 //default contetnt for password box label
4344 PasswordLabel = "Password" ;
44- PasswordConfirmationLabel = "Confirm" ;
45+ PasswordConfirmationLabel = "Password Confirm" ;
4546 }
4647
4748 #region Button Visiblity
@@ -56,7 +57,7 @@ internal Visibility CancelButtonVisiblity
5657
5758 private static readonly DependencyProperty CancelButtonVisiblityProperty =
5859 DependencyProperty . Register ( nameof ( CancelButtonVisiblity ) , typeof ( Visibility ) ,
59- typeof ( DialogBox ) , null ) ;
60+ typeof ( DialogBoxWindow ) , null ) ;
6061
6162 #endregion
6263
@@ -70,7 +71,7 @@ internal Visibility NoButtonVisiblity
7071
7172 private static readonly DependencyProperty NoButtonVisiblityProperty =
7273 DependencyProperty . Register ( nameof ( NoButtonVisiblity ) , typeof ( Visibility ) ,
73- typeof ( DialogBox ) , null ) ;
74+ typeof ( DialogBoxWindow ) , null ) ;
7475
7576 #endregion
7677
@@ -84,7 +85,7 @@ internal Visibility YesButtonVisiblity
8485
8586 private static readonly DependencyProperty YesButtonVisiblityProperty =
8687 DependencyProperty . Register ( nameof ( YesButtonVisiblity ) , typeof ( Visibility ) ,
87- typeof ( DialogBox ) , null ) ;
88+ typeof ( DialogBoxWindow ) , null ) ;
8889
8990
9091 #endregion
@@ -99,7 +100,7 @@ internal Visibility OkButtonVisiblity
99100
100101 private static readonly DependencyProperty OkButtonVisiblityProperty =
101102 DependencyProperty . Register ( nameof ( OkButtonVisiblity ) , typeof ( Visibility ) ,
102- typeof ( DialogBox ) , null ) ;
103+ typeof ( DialogBoxWindow ) , null ) ;
103104
104105 #endregion
105106
@@ -117,7 +118,7 @@ internal string CancelButtonLabel
117118
118119 private static readonly DependencyProperty CancelButtonLabelProperty =
119120 DependencyProperty . Register ( nameof ( CancelButtonLabel ) , typeof ( string ) ,
120- typeof ( DialogBox ) , null ) ;
121+ typeof ( DialogBoxWindow ) , null ) ;
121122
122123 #endregion
123124
@@ -131,7 +132,7 @@ internal string NoButtonLabel
131132
132133 private static readonly DependencyProperty NoButtonLabelProperty =
133134 DependencyProperty . Register ( nameof ( NoButtonLabel ) , typeof ( string ) ,
134- typeof ( DialogBox ) , null ) ;
135+ typeof ( DialogBoxWindow ) , null ) ;
135136
136137 #endregion
137138
@@ -145,7 +146,7 @@ internal string YesButtonLabel
145146
146147 private static readonly DependencyProperty YesButtonLabelProperty =
147148 DependencyProperty . Register ( nameof ( YesButtonLabel ) , typeof ( string ) ,
148- typeof ( DialogBox ) , null ) ;
149+ typeof ( DialogBoxWindow ) , null ) ;
149150
150151 #endregion
151152
@@ -159,7 +160,7 @@ internal string OkButtonLabel
159160
160161 private static readonly DependencyProperty OkButtonLabelProperty =
161162 DependencyProperty . Register ( nameof ( OkButtonLabel ) , typeof ( string ) ,
162- typeof ( DialogBox ) , null ) ;
163+ typeof ( DialogBoxWindow ) , null ) ;
163164
164165 #endregion
165166
@@ -177,7 +178,7 @@ internal Visibility PasswordBoxesGridVisiblity
177178
178179 private static readonly DependencyProperty PasswordBoxesGridProperty =
179180 DependencyProperty . Register ( nameof ( PasswordBoxesGridVisiblity ) , typeof ( Visibility ) ,
180- typeof ( DialogBox ) , null ) ;
181+ typeof ( DialogBoxWindow ) , null ) ;
181182
182183 #endregion
183184
@@ -192,7 +193,7 @@ internal Visibility PasswordConfirmationInputBoxVisiblitiy
192193
193194 private static readonly DependencyProperty PasswordConfirmationInputBoxProperty =
194195 DependencyProperty . Register ( nameof ( PasswordConfirmationInputBoxVisiblitiy ) , typeof ( Visibility ) ,
195- typeof ( DialogBox ) , null ) ;
196+ typeof ( DialogBoxWindow ) , null ) ;
196197
197198 #endregion
198199
@@ -208,7 +209,7 @@ internal string PasswordLabel
208209
209210 private static readonly DependencyProperty PasswordLabelProperty =
210211 DependencyProperty . Register ( nameof ( PasswordLabel ) , typeof ( string ) ,
211- typeof ( DialogBox ) , null ) ;
212+ typeof ( DialogBoxWindow ) , null ) ;
212213
213214 #endregion
214215
@@ -222,7 +223,7 @@ internal string PasswordConfirmationLabel
222223
223224 private static readonly DependencyProperty PasswordConfirmationLabelProperty =
224225 DependencyProperty . Register ( nameof ( PasswordConfirmationLabel ) , typeof ( string ) ,
225- typeof ( DialogBox ) , null ) ;
226+ typeof ( DialogBoxWindow ) , null ) ;
226227
227228 #endregion
228229
@@ -238,30 +239,30 @@ internal string Message
238239
239240 private static readonly DependencyProperty MessageProperty =
240241 DependencyProperty . Register ( nameof ( Message ) , typeof ( string ) ,
241- typeof ( DialogBox ) , null ) ;
242+ typeof ( DialogBoxWindow ) , null ) ;
242243
243244 #endregion
244245
245246 #region DialogBox Image
246247
247248 #region ImageVisiblity
248249
249- internal Visibility ImageVisiblity
250+ private Visibility ImageVisiblity
250251 {
251252 get { return ( Visibility ) GetValue ( ImageVisiblityProperty ) ; }
252253 set { SetValue ( ImageVisiblityProperty , value ) ; }
253254 }
254255
255256 private static readonly DependencyProperty ImageVisiblityProperty =
256257 DependencyProperty . Register ( nameof ( ImageVisiblity ) , typeof ( Visibility ) ,
257- typeof ( DialogBox ) , null ) ;
258+ typeof ( DialogBoxWindow ) , null ) ;
258259
259260 #endregion
260261
261262 #region MessageImage
262263
263264 private MessageBoxImage messageImage ;
264- internal MessageBoxImage MessageImage
265+ private MessageBoxImage MessageImage
265266 {
266267 get { return messageImage ; }
267268 set
@@ -277,7 +278,7 @@ internal MessageBoxImage MessageImage
277278 #region Icon
278279
279280 private Icon dialogBoxIcon ;
280- internal Icon DialogBoxIcon
281+ private Icon DialogBoxIcon
281282 {
282283 get { return dialogBoxIcon ; }
283284 set
@@ -304,21 +305,21 @@ private ImageSource MessageIcon
304305
305306 private static readonly DependencyProperty MessageIconProperty =
306307 DependencyProperty . Register ( nameof ( MessageIcon ) , typeof ( ImageSource ) ,
307- typeof ( DialogBox ) , null ) ;
308+ typeof ( DialogBoxWindow ) , null ) ;
308309
309310 #endregion
310311
311312 #region TilleIcon
312313
313314 private ImageSource WindowTitleIcon
314315 {
315- get { return ( ImageSource ) GetValue ( WindowTitleIconProperty ) ; }
316+ get { return ( ImageSource ) GetValue ( WindowTitleIconProperty ) ; }
316317 set { SetValue ( WindowTitleIconProperty , value ) ; }
317318 }
318319
319320 private static readonly DependencyProperty WindowTitleIconProperty =
320321 DependencyProperty . Register ( nameof ( WindowTitleIcon ) , typeof ( ImageSource ) ,
321- typeof ( DialogBox ) , null ) ;
322+ typeof ( DialogBoxWindow ) , null ) ;
322323
323324 #endregion
324325
@@ -353,7 +354,7 @@ internal RelayCommand ButtonCommand
353354
354355 private static readonly DependencyProperty ButtonCommandProperty =
355356 DependencyProperty . Register ( nameof ( ButtonCommand ) , typeof ( RelayCommand ) ,
356- typeof ( DialogBox ) , null ) ;
357+ typeof ( DialogBoxWindow ) , null ) ;
357358
358359 #endregion
359360
0 commit comments