提交 058644a2 编写于 作者: C CyrusNajmabadi

Add automation text for the PreviewPane we show in Lightbulbs

上级 83204a1f
......@@ -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}">
<UserControl.Resources>
<SolidColorBrush x:Key="Expander.MouseOver.Circle.Stroke" Color="#FF5593FF"/>
<SolidColorBrush x:Key="Expander.MouseOver.Circle.Fill" Color="#FFF3F9FF"/>
......@@ -103,7 +105,8 @@
<DockPanel Name="PreviewDockPanel" DockPanel.Dock="Top" Visibility="Collapsed">
<ScrollViewer Name="PreviewScrollViewer" IsTabStop="True"
HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto"
Padding="3 1 3 1"/>
Padding="3 1 3 1"
AutomationProperties.Name="{Binding ElementName=ThisPane, Path=AutomationName}"/>
</DockPanel>
<Button x:Name="OptionsButton" Content="Change Style Options" Click="OptionsButton_Click" DockPanel.Dock="Bottom"></Button>
</DockPanel>
......
......@@ -83,6 +83,8 @@ internal partial class PreviewPane : UserControl, IDisposable
InitializePreviewElement(previewContent);
}
public string AutomationName => ServicesVSResources.Preview_pane;
private void InitializePreviewElement(IReadOnlyList<object> previewItems)
{
var previewElement = CreatePreviewElement(previewItems);
......
......@@ -1601,6 +1601,15 @@ internal class ServicesVSResources {
}
}
/// <summary>
/// Looks up a localized string similar to Preview pane.
/// </summary>
internal static string Preview_pane {
get {
return ResourceManager.GetString("Preview_pane", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Preview reference changes.
/// </summary>
......
......@@ -921,4 +921,7 @@ Additional information: {1}</value>
<data name="Prefer_simple_default_expression" xml:space="preserve">
<value>Prefer simple 'default' expression</value>
</data>
<data name="Preview_pane" xml:space="preserve">
<value>Preview pane</value>
</data>
</root>
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册