Skip to content

Commit

Permalink
Minor UX tweaks (resize grips)
Browse files Browse the repository at this point in the history
  • Loading branch information
rpaquay committed Feb 11, 2018
1 parent 8ea13f6 commit 505aa76
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
xmlns:platformUi="clr-namespace:Microsoft.VisualStudio.PlatformUI;assembly=Microsoft.VisualStudio.Shell.12.0"
xmlns:indexServerInfo="clr-namespace:VsChromium.Features.IndexServerInfo"
Title="VsChromium Directory Index Details"
ResizeMode="CanResizeWithGrip"
mc:Ignorable="d"
d:DesignHeight="300" d:DesignWidth="800"
Width="800" Height="600">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
xmlns:indexServerInfo="clr-namespace:VsChromium.Features.IndexServerInfo"
xmlns:typedMessages="clr-namespace:VsChromium.Core.Ipc.TypedMessages;assembly=VsChromium.Core"
Title="VsChromium Project Configuration Details"
ResizeMode="CanResizeWithGrip"
mc:Ignorable="d"
d:DataContext="{d:DesignInstance Type=typedMessages:ProjectDetails, IsDesignTimeCreatable=True}"
d:DesignHeight="300" d:DesignWidth="800"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
xmlns:platformUi="clr-namespace:Microsoft.VisualStudio.PlatformUI;assembly=Microsoft.VisualStudio.Shell.12.0"
xmlns:indexServerInfo="clr-namespace:VsChromium.Features.IndexServerInfo"
Title="VsChromium Project Index Details"
ResizeMode="CanResizeWithGrip"
mc:Ignorable="d"
d:DesignHeight="300" d:DesignWidth="800"
Width="800" Height="600">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
xmlns:platformUi="clr-namespace:Microsoft.VisualStudio.PlatformUI;assembly=Microsoft.VisualStudio.Shell.12.0"
xmlns:indexServerInfo="clr-namespace:VsChromium.Features.IndexServerInfo"
Title="VsChromium Index Details"
ResizeMode="CanResizeWithGrip"
mc:Ignorable="d"
Width="800" Height="600"
d:DesignHeight="300" d:DesignWidth="300">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
mc:Ignorable="d"
d:DesignHeight="200" d:DesignWidth="600"
Title="VsChromium Indexing Server Information"
ResizeMode="CanResizeWithGrip"
Width="600" Height="400">
<platformUi:DialogWindow.DataContext>
<indexServerInfo1:ServerStatusViewModel />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,12 @@ public void ShowServerStatusDialog() {
return;
}
dialog.ViewModel.ProjectCount = response.ProjectCount;
dialog.ViewModel.ShowServerDetailsInvoked += (sender, args) => OnShowServerDetailsInvoked();
dialog.ViewModel.ShowServerDetailsInvoked += (sender, args) => {
// Close dialog to avoid too many nested modal dialogs, which can be
// confusing.
dialog.Close();
OnShowServerDetailsInvoked();
};
var message = new StringBuilder();
message.AppendFormat("-- {0} --\r\n", GetIndexingServerStatusText(response));
message.AppendLine();
Expand Down

0 comments on commit 505aa76

Please sign in to comment.