|
181 | 181 | SelectionMode="Single"
|
182 | 182 | ItemsSource="{Binding AvailableReferences}"
|
183 | 183 | HorizontalContentAlignment="Stretch"
|
184 |
| - ScrollViewer.HorizontalScrollBarVisibility="Auto"> |
| 184 | + ScrollViewer.HorizontalScrollBarVisibility="Auto" |
| 185 | + GotFocus="ListView_SynchronizeCurrentSelection_OnGotFocus"> |
185 | 186 | <ListView.ItemContainerStyle>
|
186 | 187 | <Style TargetType="ListViewItem">
|
187 | 188 | <Setter Property="Height" Value="20" />
|
|
239 | 240 | SelectionMode="Single"
|
240 | 241 | ItemsSource="{Binding ProjectReferences, NotifyOnTargetUpdated=True}"
|
241 | 242 | ScrollViewer.HorizontalScrollBarVisibility="Auto"
|
242 |
| - HorizontalContentAlignment="Stretch"> |
| 243 | + HorizontalContentAlignment="Stretch" |
| 244 | + GotFocus="ListView_SynchronizeCurrentSelection_OnGotFocus"> |
243 | 245 | <ListView.ItemContainerStyle>
|
244 | 246 | <Style TargetType="ListViewItem">
|
245 | 247 | <Setter Property="Height" Value="20" />
|
|
388 | 390 | <ColumnDefinition Width="50" />
|
389 | 391 | <ColumnDefinition Width="100" />
|
390 | 392 | </Grid.ColumnDefinitions>
|
391 |
| - <TextBox Grid.Row="0" Grid.Column="0" Style="{StaticResource SelectableText}" Text="{Binding CurrentSelection.Description, Mode=OneWay}" /> |
| 393 | + <TextBox x:Name="Description" |
| 394 | + Grid.Row="0" Grid.Column="0" Style="{StaticResource SelectableText}" Text="{Binding CurrentSelection.Description, Mode=OneWay}" /> |
392 | 395 | <Label Grid.Row="0" Grid.Column="1"
|
393 | 396 | Foreground="{x:Static SystemColors.GrayTextBrush}"
|
394 | 397 | VerticalAlignment="Center"
|
395 | 398 | Content="{Resx ResxName=Rubberduck.Resources.RubberduckUI, Key=References_Version}" />
|
396 |
| - <TextBox Grid.Row="0" Grid.Column="2" Style="{StaticResource SelectableText}" Text="{Binding CurrentSelection.Version, Mode=OneWay}" /> |
| 399 | + <TextBox x:Name="Version" |
| 400 | + Grid.Row="0" Grid.Column="2" Style="{StaticResource SelectableText}" Text="{Binding CurrentSelection.Version, Mode=OneWay}" /> |
397 | 401 | <Label Grid.Row="0" Grid.Column="3"
|
398 | 402 | Foreground="{x:Static SystemColors.GrayTextBrush}"
|
399 | 403 | VerticalAlignment="Center"
|
400 | 404 | Content="{Resx ResxName=Rubberduck.Resources.RubberduckUI, Key=References_Locale}" />
|
401 |
| - <TextBox Grid.Row="0" Grid.Column="4" Style="{StaticResource SelectableText}" Text="{Binding CurrentSelection.LocaleName, Mode=OneWay}" /> |
402 |
| - <TextBox Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="5" Style="{StaticResource SelectableText}" Text="{Binding CurrentSelection.FullPath, Mode=OneWay}" /> |
| 405 | + <TextBox x:Name="LocaleName" |
| 406 | + Grid.Row="0" Grid.Column="4" Style="{StaticResource SelectableText}" Text="{Binding CurrentSelection.LocaleName, Mode=OneWay}" /> |
| 407 | + <TextBox x:Name="FullPath" |
| 408 | + Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="5" Style="{StaticResource SelectableText}" Text="{Binding CurrentSelection.FullPath, Mode=OneWay}" /> |
403 | 409 | </Grid>
|
404 | 410 | </Border>
|
405 | 411 | </Border>
|
|
0 commit comments