diff --git a/src/VisualStudio/Core/Def/Implementation/PreviewPane/PreviewPane.xaml b/src/VisualStudio/Core/Def/Implementation/PreviewPane/PreviewPane.xaml index 9f868f4623e94e9b6793052eb0e17d48eb5eeba0..28723e00a6caeac134e5c115c179a9a1a70515c0 100644 --- a/src/VisualStudio/Core/Def/Implementation/PreviewPane/PreviewPane.xaml +++ b/src/VisualStudio/Core/Def/Implementation/PreviewPane/PreviewPane.xaml @@ -8,7 +8,9 @@ x:ClassModifier="internal" mc:Ignorable="d" Focusable="True" IsTabStop="False" TextOptions.TextFormattingMode="Display" Foreground="{DynamicResource {x:Static vsui:EnvironmentColors.PanelTextBrushKey}}" - d:DesignHeight="300" d:DesignWidth="400"> + d:DesignHeight="300" d:DesignWidth="400" + x:Name="ThisPane" + AutomationProperties.Name="{Binding ElementName=ThisPane, Path=AutomationName}"> @@ -103,7 +105,8 @@ + Padding="3 1 3 1" + AutomationProperties.Name="{Binding ElementName=ThisPane, Path=AutomationName}"/> diff --git a/src/VisualStudio/Core/Def/Implementation/PreviewPane/PreviewPane.xaml.cs b/src/VisualStudio/Core/Def/Implementation/PreviewPane/PreviewPane.xaml.cs index 98e15581d58fa4fac829abf79f7e4820e6de492e..dc03925fe1eb429bdf8defb6fb73a8f46942d647 100644 --- a/src/VisualStudio/Core/Def/Implementation/PreviewPane/PreviewPane.xaml.cs +++ b/src/VisualStudio/Core/Def/Implementation/PreviewPane/PreviewPane.xaml.cs @@ -83,6 +83,8 @@ internal partial class PreviewPane : UserControl, IDisposable InitializePreviewElement(previewContent); } + public string AutomationName => ServicesVSResources.Preview_pane; + private void InitializePreviewElement(IReadOnlyList previewItems) { var previewElement = CreatePreviewElement(previewItems); diff --git a/src/VisualStudio/Core/Def/ServicesVSResources.Designer.cs b/src/VisualStudio/Core/Def/ServicesVSResources.Designer.cs index e5fb7e4febf2f2c326d6d0adf2a252b24c16324c..62a52407628364406159a7acea6cdd5f19237a82 100644 --- a/src/VisualStudio/Core/Def/ServicesVSResources.Designer.cs +++ b/src/VisualStudio/Core/Def/ServicesVSResources.Designer.cs @@ -1601,6 +1601,15 @@ internal class ServicesVSResources { } } + /// + /// Looks up a localized string similar to Preview pane. + /// + internal static string Preview_pane { + get { + return ResourceManager.GetString("Preview_pane", resourceCulture); + } + } + /// /// Looks up a localized string similar to Preview reference changes. /// diff --git a/src/VisualStudio/Core/Def/ServicesVSResources.resx b/src/VisualStudio/Core/Def/ServicesVSResources.resx index 9f42a2b7c9f3d5dcaae5e7650401621dafcd309f..397181e30496ba3843ed1a47b59792d1157c9e5a 100644 --- a/src/VisualStudio/Core/Def/ServicesVSResources.resx +++ b/src/VisualStudio/Core/Def/ServicesVSResources.resx @@ -921,4 +921,7 @@ Additional information: {1} Prefer simple 'default' expression + + Preview pane + \ No newline at end of file