// Copyright (C) 2025 The Qt Company Ltd. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 using System; using System.Globalization; using System.Windows.Data; namespace QtVsTools.Wizards.Util { public class UiClassInclusionConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, CultureInfo culture) => value?.Equals(parameter); public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture) => value?.Equals(true) == true ? parameter : Binding.DoNothing; } }