File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
src/Files/Views/LayoutModes Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 335
335
x : Name =" TileViewTextBoxItemName"
336
336
Grid.Row=" 0"
337
337
HorizontalAlignment =" Left"
338
+ TextChanged =" GridViewTextBoxItemName_TextChanged"
338
339
Text =" {x:Bind ItemName, Mode=OneWay}"
339
340
Visibility =" Collapsed" />
340
341
<TextBlock
Original file line number Diff line number Diff line change @@ -356,10 +356,10 @@ private void EndRename(TextBox textBox)
356
356
TextBlock textBlock = ( popup . Parent as Grid ) . Children [ 1 ] as TextBlock ;
357
357
popup . IsOpen = false ;
358
358
}
359
- else
359
+ else if ( FolderSettings . LayoutMode == FolderLayoutModes . TilesView )
360
360
{
361
- StackPanel parentPanel = textBox . Parent as StackPanel ;
362
- TextBlock textBlock = parentPanel . Children [ 0 ] as TextBlock ;
361
+ Grid grid = textBox . Parent as Grid ;
362
+ TextBlock textBlock = grid . Children [ 0 ] as TextBlock ;
363
363
textBox . Visibility = Visibility . Collapsed ;
364
364
textBlock . Visibility = Visibility . Visible ;
365
365
}
You can’t perform that action at this time.
0 commit comments