整理控件库

This commit is contained in:
GG Z
2025-05-05 17:04:06 +08:00
parent 74532b77be
commit 3eaad7566e
283 changed files with 2156 additions and 17846 deletions

View File

@@ -1,11 +1,4 @@
// This Source Code Form is subject to the terms of the MIT License.
// If a copy of the MIT was not distributed with this file, You can obtain one at https://opensource.org/licenses/MIT.
// Copyright (C) Leszek Pomianowski and WPF UI Contributors.
// All Rights Reserved.
using WPFluent.Appearance;
using WPFluent.Appearance;
namespace WPFluent.Gallery.Helpers;
@@ -13,16 +6,11 @@ internal sealed class ThemeToIndexConverter : IValueConverter
{
public object Convert(object? value, Type targetType, object? parameter, CultureInfo culture)
{
if (value is ApplicationTheme.Dark)
if (value is ThemeType.Dark)
{
return 1;
}
if (value is ApplicationTheme.HighContrast)
{
return 2;
}
return 0;
}
@@ -30,14 +18,8 @@ internal sealed class ThemeToIndexConverter : IValueConverter
{
if (value is 1)
{
return ApplicationTheme.Dark;
return ThemeType.Dark;
}
if (value is 2)
{
return ApplicationTheme.HighContrast;
}
return ApplicationTheme.Light;
return ThemeType.Light;
}
}