Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit f989fbd

Browse files
committed
ErrorStrip is now InfoPanel
1 parent 8ae5a0b commit f989fbd

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

src/GitHub.VisualStudio.UI/GitHub.VisualStudio.UI.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@
8686
<DesignTime>True</DesignTime>
8787
</Compile>
8888
<Compile Include="SharedResources.cs" />
89-
<Compile Include="UI\Controls\ErrorStrip.xaml.cs">
90-
<DependentUpon>ErrorStrip.xaml</DependentUpon>
89+
<Compile Include="UI\Controls\InfoPanel.xaml.cs">
90+
<DependentUpon>InfoPanel.xaml</DependentUpon>
9191
</Compile>
9292
<Compile Include="UI\DrawingExtensions.cs" />
9393
<Compile Include="UI\Views\GitHubConnectContent.xaml.cs">
@@ -112,7 +112,7 @@
112112
</Compile>
113113
</ItemGroup>
114114
<ItemGroup>
115-
<Page Include="UI\Controls\ErrorStrip.xaml">
115+
<Page Include="UI\Controls\InfoPanel.xaml">
116116
<Generator>MSBuild:Compile</Generator>
117117
<SubType>Designer</SubType>
118118
</Page>

src/GitHub.VisualStudio.UI/UI/Controls/ErrorStrip.xaml renamed to src/GitHub.VisualStudio.UI/UI/Controls/InfoPanel.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<UserControl x:Class="GitHub.VisualStudio.UI.Controls.ErrorStrip"
1+
<UserControl x:Class="GitHub.VisualStudio.UI.Controls.InfoPanel"
22
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
33
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
44
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"

src/GitHub.VisualStudio.UI/UI/Controls/ErrorStrip.xaml.cs renamed to src/GitHub.VisualStudio.UI/UI/Controls/InfoPanel.xaml.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,17 @@
1616
namespace GitHub.VisualStudio.UI.Controls
1717
{
1818
/// <summary>
19-
/// Interaction logic for ErrorStrip.xaml
19+
/// Interaction logic for InfoPanel.xaml
2020
/// </summary>
21-
public partial class ErrorStrip : UserControl
21+
public partial class InfoPanel : UserControl
2222
{
23-
public ErrorStrip()
23+
public InfoPanel()
2424
{
2525
InitializeComponent();
2626
}
2727

2828
public static readonly DependencyProperty MessageProperty =
29-
DependencyProperty.Register(nameof(Message), typeof(string), typeof(ErrorStrip), new PropertyMetadata(null, UpdateVisibilities));
29+
DependencyProperty.Register(nameof(Message), typeof(string), typeof(InfoPanel), new PropertyMetadata(null, UpdateVisibilities));
3030

3131
public string Message
3232
{
@@ -36,7 +36,7 @@ public string Message
3636

3737
static void UpdateVisibilities(DependencyObject d, DependencyPropertyChangedEventArgs e)
3838
{
39-
var control = (ErrorStrip)d;
39+
var control = (InfoPanel)d;
4040
control.Visibility = string.IsNullOrEmpty(control.Message) ? Visibility.Collapsed : Visibility.Visible;
4141
}
4242
void Button_Click(object sender, RoutedEventArgs e)

src/GitHub.VisualStudio/UI/Views/GitHubPaneView.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
</UserControl.Resources>
4242

4343
<DockPanel>
44-
<control:ErrorStrip x:Name="ErrorMessage" Message="{Binding ErrorMessage}" VerticalAlignment="Top" DockPanel.Dock="Top"></control:ErrorStrip>
44+
<control:InfoPanel x:Name="ErrorMessage" Message="{Binding ErrorMessage}" VerticalAlignment="Top" DockPanel.Dock="Top"></control:InfoPanel>
4545
<StackPanel Margin="6,9,9,5"
4646
DockPanel.Dock="Top"
4747
Orientation="Horizontal">

0 commit comments

Comments
 (0)