@@ -58,7 +58,7 @@ public static DynamicDialog GetFor_ShortcutNotFound(string targetPath)
5858			return  dialog ; 
5959		} 
6060
61- 		public  static   DynamicDialog  GetFor_RenameDialog ( ) 
61+ 		public  static   DynamicDialog  GetFor_CreateItemDialog ( string   itemType ) 
6262		{ 
6363			DynamicDialog ?  dialog  =  null ; 
6464			TextBox  inputText  =  new ( ) 
@@ -70,7 +70,7 @@ public static DynamicDialog GetFor_RenameDialog()
7070			{ 
7171				Title  =  "InvalidFilename/Text" . GetLocalizedResource ( ) , 
7272				PreferredPlacement  =  TeachingTipPlacementMode . Bottom , 
73- 				DataContext  =  new  RenameDialogViewModel ( ) , 
73+ 				DataContext  =  new  CreateItemDialogViewModel ( ) , 
7474			} ; 
7575
7676			warning . SetBinding ( TeachingTip . TargetProperty ,  new  Binding ( ) 
@@ -88,7 +88,7 @@ public static DynamicDialog GetFor_RenameDialog()
8888			inputText . TextChanged  +=  ( textBox ,  args )  => 
8989			{ 
9090				var  isInputValid  =  FilesystemHelpers . IsValidForFilename ( inputText . Text ) ; 
91- 				( ( RenameDialogViewModel ) warning . DataContext ) . IsNameInvalid  =  ! string . IsNullOrEmpty ( inputText . Text )  &&  ! isInputValid ; 
91+ 				( ( CreateItemDialogViewModel ) warning . DataContext ) . IsNameInvalid  =  ! string . IsNullOrEmpty ( inputText . Text )  &&  ! isInputValid ; 
9292				dialog ! . ViewModel . DynamicButtonsEnabled  =  isInputValid 
9393														?  DynamicDialogButtons . Primary  |  DynamicDialogButtons . Cancel 
9494														:  DynamicDialogButtons . Cancel ; 
@@ -104,7 +104,7 @@ public static DynamicDialog GetFor_RenameDialog()
104104
105105			dialog  =  new  DynamicDialog ( new  DynamicDialogViewModel ( ) 
106106			{ 
107- 				TitleText  =  "EnterAnItemName ". GetLocalizedResource ( ) , 
107+ 				TitleText  =  string . Format ( "CreateNewItemTitle ". GetLocalizedResource ( ) ,   itemType ) , 
108108				SubtitleText  =  null , 
109109				DisplayControl  =  new  Grid ( ) 
110110				{ 
@@ -118,7 +118,7 @@ public static DynamicDialog GetFor_RenameDialog()
118118				{ 
119119					vm . HideDialog ( ) ;  // Rename successful 
120120				} , 
121- 				PrimaryButtonText  =  "RenameDialog/PrimaryButtonText " . GetLocalizedResource ( ) , 
121+ 				PrimaryButtonText  =  "Create " . GetLocalizedResource ( ) , 
122122				CloseButtonText  =  "Cancel" . GetLocalizedResource ( ) , 
123123				DynamicButtonsEnabled  =  DynamicDialogButtons . Cancel , 
124124				DynamicButtons  =  DynamicDialogButtons . Primary  |  DynamicDialogButtons . Cancel 
0 commit comments