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 335335 x : Name =" TileViewTextBoxItemName"
336336 Grid.Row=" 0"
337337 HorizontalAlignment =" Left"
338+ TextChanged =" GridViewTextBoxItemName_TextChanged"
338339 Text =" {x:Bind ItemName, Mode=OneWay}"
339340 Visibility =" Collapsed" />
340341 <TextBlock
Original file line number Diff line number Diff line change @@ -356,10 +356,10 @@ private void EndRename(TextBox textBox)
356356 TextBlock textBlock = ( popup . Parent as Grid ) . Children [ 1 ] as TextBlock ;
357357 popup . IsOpen = false ;
358358 }
359- else
359+ else if ( FolderSettings . LayoutMode == FolderLayoutModes . TilesView )
360360 {
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 ;
363363 textBox . Visibility = Visibility . Collapsed ;
364364 textBlock . Visibility = Visibility . Visible ;
365365 }
You can’t perform that action at this time.
0 commit comments