File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
RetailCoder.VBE/UI/Refactorings/Rename Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change 2828 <TextBlock Text =" {Resx ResxName=Rubberduck.UI.RubberduckUI, Key=NameLabelText}"
2929 VerticalAlignment =" Top"
3030 Margin =" 0,0,5,0" />
31- <TextBox Grid.Column=" 1"
31+ <TextBox Name =" RenameTextBox"
32+ Grid.Column=" 1"
3233 Text =" {Binding NewName, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
3334 Height =" 22"
3435 VerticalAlignment =" Top"
5556 Margin =" 5,0"
5657 Padding =" 10,0"
5758 IsEnabled =" {Binding IsValidName}"
59+ IsDefault =" True"
5860 Command =" {Binding OkButtonCommand}" />
5961 <Button Content =" {Resx ResxName=Rubberduck.UI.RubberduckUI, Key=CancelButtonText}"
6062 Grid.Column=" 1"
6163 Height =" 20"
6264 Margin =" 5,0"
6365 Padding =" 10,0"
66+ IsCancel =" True"
6467 Command =" {Binding CancelButtonCommand}" >
6568 </Button >
6669 </Grid >
Original file line number Diff line number Diff line change @@ -5,6 +5,12 @@ public partial class RenameView
55 public RenameView ( )
66 {
77 InitializeComponent ( ) ;
8+
9+ Loaded += ( o , e ) =>
10+ {
11+ RenameTextBox . Focus ( ) ;
12+ RenameTextBox . SelectAll ( ) ;
13+ } ;
814 }
915 }
1016}
You can’t perform that action at this time.
0 commit comments