File: EditorConfigSettings\NamingStyle\View\ColumnViews\NamingStylesStyleControl.xaml.cs
Web Access
Project: src\src\VisualStudio\Core\Def\Microsoft.VisualStudio.LanguageServices_pxr0p0dn_wpftmp.csproj (Microsoft.VisualStudio.LanguageServices)
// 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.
 
using System.Windows.Controls;
using Microsoft.VisualStudio.LanguageServices.EditorConfigSettings.NamingStyle.ViewModel;
 
namespace Microsoft.VisualStudio.LanguageServices.EditorConfigSettings.NamingStyle.View;
 
/// <summary>
/// Interaction logic for NamingStylesStyleControl.xaml
/// </summary>
internal partial class NamingStylesStyleControl : UserControl
{
    private readonly NamingStylesStyleViewModel _viewModel;
 
    public NamingStylesStyleControl(NamingStylesStyleViewModel viewModel)
    {
        InitializeComponent();
        _viewModel = viewModel;
        DataContext = viewModel;
    }
 
    private void StyleComboBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
        => _viewModel.SelectionChanged(StyleComboBox.SelectedIndex);
}