File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
src/Files.App/Views/LayoutModes Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -190,7 +190,7 @@ override public void StartRenameItem()
190
190
if ( listViewItem == null )
191
191
return ;
192
192
193
- TextBlock textBlock = listViewItem . FindDescendant ( "Name " ) as TextBlock ;
193
+ TextBlock textBlock = listViewItem . FindDescendant ( "ItemName " ) as TextBlock ;
194
194
textBox = listViewItem . FindDescendant ( "ListViewTextBoxItemName" ) as TextBox ;
195
195
textBox . Text = textBlock . Text ;
196
196
OldItemName = textBlock . Text ;
@@ -270,7 +270,7 @@ private void EndRename(TextBox textBox)
270
270
ListViewItem listViewItem = FileList . ContainerFromItem ( RenamingItem ) as ListViewItem ;
271
271
listViewItem ? . Focus ( FocusState . Programmatic ) ;
272
272
273
- TextBlock textBlock = listViewItem . FindDescendant ( "Name " ) as TextBlock ;
273
+ TextBlock textBlock = listViewItem . FindDescendant ( "ItemName " ) as TextBlock ;
274
274
textBox . Visibility = Visibility . Collapsed ;
275
275
textBlock . Visibility = Visibility . Visible ;
276
276
}
Original file line number Diff line number Diff line change @@ -331,7 +331,7 @@ override public void StartRenameItem()
331
331
{
332
332
return ;
333
333
}
334
- TextBlock textBlock = listViewItem . FindDescendant ( "Name " ) as TextBlock ;
334
+ TextBlock textBlock = listViewItem . FindDescendant ( "ItemName " ) as TextBlock ;
335
335
textBox = listViewItem . FindDescendant ( "ItemNameTextBox" ) as TextBox ;
336
336
textBox . Text = textBlock . Text ;
337
337
OldItemName = textBlock . Text ;
@@ -415,7 +415,7 @@ private void EndRename(TextBox textBox)
415
415
}
416
416
else
417
417
{
418
- TextBlock textBlock = listViewItem . FindDescendant ( "Name " ) as TextBlock ;
418
+ TextBlock textBlock = listViewItem . FindDescendant ( "ItemName " ) as TextBlock ;
419
419
textBox . Visibility = Visibility . Collapsed ;
420
420
textBlock . Visibility = Visibility . Visible ;
421
421
}
Original file line number Diff line number Diff line change @@ -261,15 +261,15 @@ override public void StartRenameItem()
261
261
if ( FolderSettings . LayoutMode == FolderLayoutModes . GridView )
262
262
{
263
263
Popup popup = ( Popup ) gridViewItem . FindDescendant ( "EditPopup" ) ! ;
264
- TextBlock textBlock = ( TextBlock ) gridViewItem . FindDescendant ( "Name " ) ! ;
264
+ TextBlock textBlock = ( TextBlock ) gridViewItem . FindDescendant ( "ItemName " ) ! ;
265
265
textBox = ( TextBox ) popup . Child ;
266
266
textBox . Text = textBlock . Text ;
267
267
popup . IsOpen = true ;
268
268
OldItemName = textBlock . Text ;
269
269
}
270
270
else
271
271
{
272
- TextBlock textBlock = ( TextBlock ) gridViewItem . FindDescendant ( "Name " ) ! ;
272
+ TextBlock textBlock = ( TextBlock ) gridViewItem . FindDescendant ( "ItemName " ) ! ;
273
273
textBox = ( TextBox ) gridViewItem . FindDescendant ( "TileViewTextBoxItemName" ) ! ;
274
274
textBox . Text = textBlock . Text ;
275
275
OldItemName = textBlock . Text ;
You can’t perform that action at this time.
0 commit comments