Skip to content

Commit a3def7f

Browse files
Merge pull request #742 from aspnet/dev/phil-allen-msft/providerLookFeel
Look and feel fixes for the "Install Client Libraries" dialog
2 parents 876318d + 7b19d9b commit a3def7f

File tree

3 files changed

+20
-302
lines changed

3 files changed

+20
-302
lines changed

src/LibraryManager.Vsix/UI/InstallDialog.xaml

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,7 @@
1414
mc:Ignorable="d" d:DataContext="{d:DesignInstance IsDesignTimeCreatable=False, Type=models:InstallDialogViewModel}"
1515
xmlns:ui="clr-namespace:Microsoft.Web.LibraryManager.Vsix.UI.Theming"
1616
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">
2118
<Window.Resources>
2219
<BooleanToVisibilityConverter x:Key="BoolToVisibilityConverter" />
2320
<converters:EnumToBoolConverter x:Key="EnumToBoolConverter"/>
@@ -53,12 +50,6 @@
5350
Target="{Binding ElementName=ProviderComboBox}">
5451
<AccessText Text="{x:Static resources:Text.Provider}" />
5552
</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>
6253
<ComboBox x:Name="ProviderComboBox"
6354
AutomationProperties.Name="{extensions:RemoveCharacter {x:Static resources:Text.Provider}, _}"
6455
Grid.Row="0"
@@ -67,16 +58,22 @@
6758
DisplayMemberPath="Id"
6859
SelectedItem="{Binding SelectedProvider, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
6960
SelectionChanged="ProviderComboBox_SelectionChanged"
70-
ItemsSource="{Binding Providers}"
61+
ItemsSource="{Binding Providers, Mode=OneWay}"
7162
HorizontalAlignment="Left"
7263
VerticalAlignment="Center"
73-
Width="auto">
64+
Width="Auto">
7465
<ComboBox.ItemContainerStyle>
7566
<Style TargetType="ComboBoxItem">
76-
<Setter Property="AutomationProperties.Name" Value="{Binding Id}"/>
67+
<Setter Property="AutomationProperties.Name" Value="{Binding Id, Mode=OneWay}"/>
7768
</Style>
7869
</ComboBox.ItemContainerStyle>
7970
</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>
8077
<DockPanel Grid.Row="1"
8178
Grid.Column="1"
8279
KeyboardNavigation.TabNavigation="Local"

src/LibraryManager.Vsix/UI/Theming/ThemedWindow.cs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,17 @@ public ThemedWindow()
8282
{
8383
LastChildFill = true,
8484
};
85-
_dockPanel.SetResourceReference(Border.BorderBrushProperty, EnvironmentColors.MainWindowActiveDefaultBorderBrushKey);
85+
8686
_dockPanel.SetResourceReference(Border.BackgroundProperty, EnvironmentColors.StartPageTabBackgroundBrushKey);
8787

8888
_dockPanel.Children.Add(titlebar);
8989

90-
Content = _dockPanel;
90+
Border borderedContainer = new Border();
91+
borderedContainer.SetResourceReference(Border.BorderBrushProperty, EnvironmentColors.MainWindowActiveDefaultBorderBrushKey);
92+
borderedContainer.SetValue(Border.BorderThicknessProperty, new Thickness(1));
93+
borderedContainer.Child = _dockPanel;
94+
95+
Content = borderedContainer;
9196

9297
// merge resource dictionaries before applying styles
9398
this.ShouldBeThemed();

0 commit comments

Comments
 (0)