From f0e5f0113035dc5d0b3eccad238e8799f14aad69 Mon Sep 17 00:00:00 2001 From: JLdgu Date: Fri, 20 Oct 2023 10:53:38 +0100 Subject: [PATCH] Rename Mixins to Extensions --- .../{PaletteHelperMixins.cs => PaletteHelperExtensions.cs} | 2 +- .../{BaseThemeMixins.cs => BaseThemeExtensions.cs} | 2 +- .../{XamlTestMixins.cs => XamlTestExtensions.cs} | 2 +- .../{AdornerMixinsTests.cs => AdornerExtensionsTests.cs} | 4 ++-- .../{AdornerMixins.cs => AdornerExtensions.cs} | 2 +- .../{StringMixins.cs => StringExtensions.cs} | 2 +- .../{VisualTreeMixins.cs => VisualTreeExtensions.cs} | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) rename MainDemo.Wpf/{PaletteHelperMixins.cs => PaletteHelperExtensions.cs} (95%) rename MaterialDesignThemes.MahApps/{BaseThemeMixins.cs => BaseThemeExtensions.cs} (94%) rename MaterialDesignThemes.UITests/{XamlTestMixins.cs => XamlTestExtensions.cs} (99%) rename MaterialDesignThemes.Wpf.Tests/{AdornerMixinsTests.cs => AdornerExtensionsTests.cs} (86%) rename MaterialDesignThemes.Wpf/{AdornerMixins.cs => AdornerExtensions.cs} (96%) rename MaterialDesignThemes.Wpf/{StringMixins.cs => StringExtensions.cs} (92%) rename MaterialDesignThemes.Wpf/{VisualTreeMixins.cs => VisualTreeExtensions.cs} (98%) diff --git a/MainDemo.Wpf/PaletteHelperMixins.cs b/MainDemo.Wpf/PaletteHelperExtensions.cs similarity index 95% rename from MainDemo.Wpf/PaletteHelperMixins.cs rename to MainDemo.Wpf/PaletteHelperExtensions.cs index b49f329882..402eab8dfc 100644 --- a/MainDemo.Wpf/PaletteHelperMixins.cs +++ b/MainDemo.Wpf/PaletteHelperExtensions.cs @@ -5,7 +5,7 @@ namespace MaterialDesignDemo; -public static class PaletteHelperMixins +public static class PaletteHelperExtensions { public static void ChangePrimaryColor(this PaletteHelper paletteHelper, Color color) { diff --git a/MaterialDesignThemes.MahApps/BaseThemeMixins.cs b/MaterialDesignThemes.MahApps/BaseThemeExtensions.cs similarity index 94% rename from MaterialDesignThemes.MahApps/BaseThemeMixins.cs rename to MaterialDesignThemes.MahApps/BaseThemeExtensions.cs index acc81c3425..d2f6d043b5 100644 --- a/MaterialDesignThemes.MahApps/BaseThemeMixins.cs +++ b/MaterialDesignThemes.MahApps/BaseThemeExtensions.cs @@ -4,7 +4,7 @@ namespace MaterialDesignThemes.MahApps; -internal static class BaseThemeMixins +internal static class BaseThemeExtensions { public static string GetMahAppsBaseColorScheme(this BaseTheme baseTheme) { diff --git a/MaterialDesignThemes.UITests/XamlTestMixins.cs b/MaterialDesignThemes.UITests/XamlTestExtensions.cs similarity index 99% rename from MaterialDesignThemes.UITests/XamlTestMixins.cs rename to MaterialDesignThemes.UITests/XamlTestExtensions.cs index 54bba9e08d..bd86a0b12e 100644 --- a/MaterialDesignThemes.UITests/XamlTestMixins.cs +++ b/MaterialDesignThemes.UITests/XamlTestExtensions.cs @@ -3,7 +3,7 @@ namespace MaterialDesignThemes.UITests; -public static class XamlTestMixins +public static class XamlTestExtensions { public static async Task InitializeWithMaterialDesign(this IApp app, BaseTheme baseTheme = BaseTheme.Light, diff --git a/MaterialDesignThemes.Wpf.Tests/AdornerMixinsTests.cs b/MaterialDesignThemes.Wpf.Tests/AdornerExtensionsTests.cs similarity index 86% rename from MaterialDesignThemes.Wpf.Tests/AdornerMixinsTests.cs rename to MaterialDesignThemes.Wpf.Tests/AdornerExtensionsTests.cs index 6e681395e3..b84908b4e9 100644 --- a/MaterialDesignThemes.Wpf.Tests/AdornerMixinsTests.cs +++ b/MaterialDesignThemes.Wpf.Tests/AdornerExtensionsTests.cs @@ -2,11 +2,11 @@ namespace MaterialDesignThemes.Wpf.Tests; -public class AdornerMixinsTests : IClassFixture +public class AdornerExtensionsTests : IClassFixture { private readonly AdornerFixture _testFixture; - public AdornerMixinsTests(AdornerFixture fixture) + public AdornerExtensionsTests(AdornerFixture fixture) { _testFixture = fixture; } diff --git a/MaterialDesignThemes.Wpf/AdornerMixins.cs b/MaterialDesignThemes.Wpf/AdornerExtensions.cs similarity index 96% rename from MaterialDesignThemes.Wpf/AdornerMixins.cs rename to MaterialDesignThemes.Wpf/AdornerExtensions.cs index 9631dc2cd0..49183f8637 100644 --- a/MaterialDesignThemes.Wpf/AdornerMixins.cs +++ b/MaterialDesignThemes.Wpf/AdornerExtensions.cs @@ -7,7 +7,7 @@ namespace MaterialDesignThemes.Wpf; /// since there is no built-in way to do that in xaml. /// See here /// -internal static class AdornerMixins +internal static class AdornerExtensions { public static void AddAdorner(this UIElement element, TAdorner adorner) where TAdorner : Adorner { diff --git a/MaterialDesignThemes.Wpf/StringMixins.cs b/MaterialDesignThemes.Wpf/StringExtensions.cs similarity index 92% rename from MaterialDesignThemes.Wpf/StringMixins.cs rename to MaterialDesignThemes.Wpf/StringExtensions.cs index 5be3c7d781..2322920187 100644 --- a/MaterialDesignThemes.Wpf/StringMixins.cs +++ b/MaterialDesignThemes.Wpf/StringExtensions.cs @@ -2,7 +2,7 @@ namespace MaterialDesignThemes.Wpf; -internal static class StringMixins +internal static class StringExtensions { public static string ToTitleCase(this string text, CultureInfo culture, string separator = " ") { diff --git a/MaterialDesignThemes.Wpf/VisualTreeMixins.cs b/MaterialDesignThemes.Wpf/VisualTreeExtensions.cs similarity index 98% rename from MaterialDesignThemes.Wpf/VisualTreeMixins.cs rename to MaterialDesignThemes.Wpf/VisualTreeExtensions.cs index a8f3aa2c97..0b224e5f47 100644 --- a/MaterialDesignThemes.Wpf/VisualTreeMixins.cs +++ b/MaterialDesignThemes.Wpf/VisualTreeExtensions.cs @@ -3,7 +3,7 @@ namespace MaterialDesignThemes.Wpf; -internal static class VisualTreeMixins +internal static class VisualTreeExtensions { public static IEnumerable VisualDepthFirstTraversal(this DependencyObject node) {