diff --git a/src/VisualStudio/Core/Impl/Options/GridOptionPreviewControl.xaml b/src/VisualStudio/Core/Impl/Options/GridOptionPreviewControl.xaml index 3f46cc8b101b9..402e414c60b31 100644 --- a/src/VisualStudio/Core/Impl/Options/GridOptionPreviewControl.xaml +++ b/src/VisualStudio/Core/Impl/Options/GridOptionPreviewControl.xaml @@ -87,23 +87,25 @@ - - - - - + + + + + + Preferences { get; set; } public List NotificationPreferences { get; set; } @@ -56,6 +57,7 @@ public AbstractCodeStyleOptionViewModel( Preferences = preferences ?? GetDefaultPreferences(); NotificationPreferences = notificationPreferences ?? GetDefaultNotifications(); GroupName = groupName; + GroupNameAndDescription = $"{groupName}, {description}"; } private static List GetDefaultNotifications() diff --git a/src/VisualStudio/Core/Impl/Options/TextBlockWithDataItemControlType.cs b/src/VisualStudio/Core/Impl/Options/TextBlockWithDataItemControlType.cs new file mode 100644 index 0000000000000..0c38beb315b7a --- /dev/null +++ b/src/VisualStudio/Core/Impl/Options/TextBlockWithDataItemControlType.cs @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. + +using System.Windows.Automation.Peers; +using System.Windows.Controls; + +namespace Microsoft.VisualStudio.LanguageServices.Implementation.Options +{ + internal class TextBlockWithDataItemControlType : TextBlock + { + protected override AutomationPeer OnCreateAutomationPeer() + { + return new TextBlockWithDataItemControlTypeAutomationPeer(this); + } + + private class TextBlockWithDataItemControlTypeAutomationPeer : TextBlockAutomationPeer + { + public TextBlockWithDataItemControlTypeAutomationPeer(TextBlock owner) : base(owner) + { + } + + protected override AutomationControlType GetAutomationControlTypeCore() + { + return AutomationControlType.DataItem; + } + } + } +} diff --git a/src/VisualStudio/Core/Impl/ServicesVisualStudioImpl.csproj b/src/VisualStudio/Core/Impl/ServicesVisualStudioImpl.csproj index 736e1908de723..8555ff20ffd33 100644 --- a/src/VisualStudio/Core/Impl/ServicesVisualStudioImpl.csproj +++ b/src/VisualStudio/Core/Impl/ServicesVisualStudioImpl.csproj @@ -252,6 +252,7 @@ SymbolSpecificationDialog.xaml +