/
githubmirror
/
roslyn
Обзор
Документация
Войти
/
githubmirror
/
roslyn
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/VisualStudio/Core/Impl/Options/ColumnToTabStopConverter.cs
25 строк
1 KB
Cyrus Najmabadi
Use file scoped namespaces. (#77854)
27 мар 2025, 09:55
Не верифицирован
27 мар 2025, 09:55
98d41b8
Код
Авторство
О чём код?
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System.Globalization; using System.Windows.Controls; using Microsoft.VisualStudio.PlatformUI; namespace Microsoft.VisualStudio.LanguageServices.Implementation.Options; /// <summary> /// DataGridTemplateColumns have custom controls that should be focused instead of the cell. /// </summary> internal sealed class ColumnToTabStopConverter : ValueConverter<DataGridColumn, bool> { protected override bool Convert(DataGridColumn value, object parameter, CultureInfo culture) { // We use DataGridTemplateColumns in our options grids to contain controls (as opposed // to plain text in DataGridTextColumns). We want the tab stop to be on the contained // control and not the cell itself, so don't have DataGridTemplateColumns be tab stops. return value is not DataGridTemplateColumn; } }