Skip to content

Commit

Permalink
fix: Uno UI registrations are not initialized (#3082)
Browse files Browse the repository at this point in the history
* fix: Uno UI registrations are not initialized

* Update RegistrationNamespace.cs

* Update RegistrationNamespace.cs
  • Loading branch information
glennawatson authored Dec 4, 2021
1 parent 3bb5046 commit 71b36f2
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -756,12 +756,13 @@ namespace ReactiveUI
Winforms = 2,
Wpf = 3,
Uno = 4,
Blazor = 5,
Drawing = 6,
Avalonia = 7,
Maui = 8,
Uwp = 9,
WinUI = 10,
UnoWinUI = 5,
Blazor = 6,
Drawing = 7,
Avalonia = 8,
Maui = 9,
Uwp = 10,
WinUI = 11,
}
public class Registrations
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -763,12 +763,13 @@ namespace ReactiveUI
Winforms = 2,
Wpf = 3,
Uno = 4,
Blazor = 5,
Drawing = 6,
Avalonia = 7,
Maui = 8,
Uwp = 9,
WinUI = 10,
UnoWinUI = 5,
Blazor = 6,
Drawing = 7,
Avalonia = 8,
Maui = 9,
Uwp = 10,
WinUI = 11,
}
public class Registrations
{
Expand Down
3 changes: 2 additions & 1 deletion src/ReactiveUI/Mixins/DependencyResolverMixins.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public static void InitializeReactiveUI(this IMutableDependencyResolver resolver
{ RegistrationNamespace.Winforms, "ReactiveUI.Winforms" },
{ RegistrationNamespace.Wpf, "ReactiveUI.Wpf" },
{ RegistrationNamespace.Uno, "ReactiveUI.Uno" },
{ RegistrationNamespace.UnoWinUI, "ReactiveUI.Uno.WinUI" },
{ RegistrationNamespace.Blazor, "ReactiveUI.Blazor" },
{ RegistrationNamespace.Drawing, "ReactiveUI.Drawing" },
{ RegistrationNamespace.Maui, "ReactiveUI.Maui" },
Expand Down Expand Up @@ -153,4 +154,4 @@ private static void ProcessRegistrationForNamespace(string namespaceName, Assemb
}
}
}
}
}
7 changes: 6 additions & 1 deletion src/ReactiveUI/RegistrationNamespace.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ public enum RegistrationNamespace
/// </summary>
Uno,

/// <summary>
/// Uno Win UI.
/// </summary>
UnoWinUI,

/// <summary>
/// Blazor.
/// </summary>
Expand Down Expand Up @@ -62,4 +67,4 @@ public enum RegistrationNamespace
/// WinUI.
/// </summary>
WinUI,
}
}

0 comments on commit 71b36f2

Please sign in to comment.