Skip to content

Commit 0d87dcb

Browse files
authored
Merge pull request #3205 from PrismLibrary/dev/ds/migrate-mobile-modules
Use Maui version for Modules
2 parents 29ce064 + 4ef20a5 commit 0d87dcb

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

src/Maui/Prism.Maui/Modularity/ModuleCatalog.cs

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
1-
namespace Prism.Modularity;
1+
namespace Prism.Modularity;
22

3+
/// <summary>
4+
/// The <see cref="ModuleCatalog"/> holds information about the modules that can be used by the
5+
/// application. Each module is described in a <see cref="ModuleInfo"/> class, that records the
6+
/// name and type of the module.
7+
/// </summary>
8+
#if UNO_WINUI
9+
[Microsoft.UI.Xaml.Markup.ContentProperty(Name = nameof(Items))]
10+
#else
311
[ContentProperty(nameof(Items))]
12+
#endif
413
public class ModuleCatalog : ModuleCatalogBase
514
{
615

src/Maui/Prism.Maui/Modularity/ModuleInfo.cs

+7
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,14 @@
44

55
namespace Prism.Modularity;
66

7+
/// <summary>
8+
/// Defines the metadata that describes a module.
9+
/// </summary>
10+
#if UNO_WINUI
11+
[Microsoft.UI.Xaml.Markup.ContentProperty(Name = nameof(DependsOn))]
12+
#else
713
[ContentProperty(nameof(DependsOn))]
14+
#endif
815
public partial class ModuleInfo : IModuleInfo
916
{
1017
/// <summary>

src/Uno/Prism.Uno/Prism.Uno.WinUI.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
</ItemGroup>
3030
<ItemGroup>
3131
<Compile Include="..\..\Wpf\Prism.Wpf\**\*.cs" Exclude="..\..\Wpf\Prism.Wpf\bin\**\*.cs;..\..\Wpf\Prism.Wpf\obj\**\*.cs" />
32-
<Compile Include="..\..\Forms\Prism.Forms\Modularity\*.cs" LinkBase="Modularity" />
32+
<Compile Include="..\..\Maui\Prism.Maui\Modularity\*.cs" LinkBase="Modularity" />
3333
<Compile Remove="**\*.net45.cs" />
3434
<Compile Remove="**\*.netcore.cs" />
3535
<Compile Remove="..\..\Wpf\Prism.Wpf\Modularity\**" />

0 commit comments

Comments
 (0)