|
14 | 14 | mc:Ignorable="d" d:DataContext="{d:DesignInstance IsDesignTimeCreatable=False, Type=models:InstallDialogViewModel}" |
15 | 15 | xmlns:ui="clr-namespace:Microsoft.Web.LibraryManager.Vsix.UI.Theming" |
16 | 16 | Title="{x:Static resources:Text.AddClientSideLibrary}" |
17 | | - Height="350" Width="500" |
18 | | - ShowInTaskbar="False" |
19 | | - ResizeMode="CanResizeWithGrip" |
20 | | - WindowStartupLocation="CenterOwner"> |
| 17 | + Height="350" Width="500"> |
21 | 18 | <Window.Resources> |
22 | 19 | <BooleanToVisibilityConverter x:Key="BoolToVisibilityConverter" /> |
23 | 20 | <converters:EnumToBoolConverter x:Key="EnumToBoolConverter"/> |
|
53 | 50 | Target="{Binding ElementName=ProviderComboBox}"> |
54 | 51 | <AccessText Text="{x:Static resources:Text.Provider}" /> |
55 | 52 | </Label> |
56 | | - <Label Name="LibraryId" |
57 | | - Grid.Row="1" |
58 | | - Grid.Column="0" |
59 | | - Target="{Binding ElementName=LibrarySearchBox}"> |
60 | | - <AccessText Text="{x:Static resources:Text.Library}" /> |
61 | | - </Label> |
62 | 53 | <ComboBox x:Name="ProviderComboBox" |
63 | 54 | AutomationProperties.Name="{extensions:RemoveCharacter {x:Static resources:Text.Provider}, _}" |
64 | 55 | Grid.Row="0" |
|
67 | 58 | DisplayMemberPath="Id" |
68 | 59 | SelectedItem="{Binding SelectedProvider, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" |
69 | 60 | SelectionChanged="ProviderComboBox_SelectionChanged" |
70 | | - ItemsSource="{Binding Providers}" |
| 61 | + ItemsSource="{Binding Providers, Mode=OneWay}" |
71 | 62 | HorizontalAlignment="Left" |
72 | 63 | VerticalAlignment="Center" |
73 | | - Width="auto"> |
| 64 | + Width="Auto"> |
74 | 65 | <ComboBox.ItemContainerStyle> |
75 | 66 | <Style TargetType="ComboBoxItem"> |
76 | | - <Setter Property="AutomationProperties.Name" Value="{Binding Id}"/> |
| 67 | + <Setter Property="AutomationProperties.Name" Value="{Binding Id, Mode=OneWay}"/> |
77 | 68 | </Style> |
78 | 69 | </ComboBox.ItemContainerStyle> |
79 | 70 | </ComboBox> |
| 71 | + <Label Name="LibraryId" |
| 72 | + Grid.Row="1" |
| 73 | + Grid.Column="0" |
| 74 | + Target="{Binding ElementName=LibrarySearchBox}"> |
| 75 | + <AccessText Text="{x:Static resources:Text.Library}" /> |
| 76 | + </Label> |
80 | 77 | <DockPanel Grid.Row="1" |
81 | 78 | Grid.Column="1" |
82 | 79 | KeyboardNavigation.TabNavigation="Local" |
|
0 commit comments