Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename Mixins to Extensions #3342

Merged
merged 1 commit into from
Oct 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace MaterialDesignDemo;

public static class PaletteHelperMixins
public static class PaletteHelperExtensions
{
public static void ChangePrimaryColor(this PaletteHelper paletteHelper, Color color)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace MaterialDesignThemes.MahApps;

internal static class BaseThemeMixins
internal static class BaseThemeExtensions
{
public static string GetMahAppsBaseColorScheme(this BaseTheme baseTheme)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

namespace MaterialDesignThemes.Wpf.Tests;

public class AdornerMixinsTests : IClassFixture<AdornerMixinsTests.AdornerFixture>
public class AdornerExtensionsTests : IClassFixture<AdornerExtensionsTests.AdornerFixture>
{
private readonly AdornerFixture _testFixture;

public AdornerMixinsTests(AdornerFixture fixture)
public AdornerExtensionsTests(AdornerFixture fixture)
{
_testFixture = fixture;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace MaterialDesignThemes.Wpf;
/// since there is no built-in way to do that in xaml.
/// <a href="https://docs.microsoft.com/en-us/dotnet/framework/wpf/controls/adorners-overview">See here</a>
/// </summary>
internal static class AdornerMixins
internal static class AdornerExtensions
{
public static void AddAdorner<TAdorner>(this UIElement element, TAdorner adorner) where TAdorner : Adorner
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = " ")
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace MaterialDesignThemes.Wpf;

internal static class VisualTreeMixins
internal static class VisualTreeExtensions
{
public static IEnumerable<DependencyObject> VisualDepthFirstTraversal(this DependencyObject node)
{
Expand Down
Loading