@@ -58,7 +58,7 @@ public static DynamicDialog GetFor_ShortcutNotFound(string targetPath)
5858 return dialog ;
5959 }
6060
61- public static DynamicDialog GetFor_RenameDialog ( string itemType )
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(string itemType)
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(string itemType)
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 ;
0 commit comments