Skip to content

Commit

Permalink
adding test functionality for Modules
Browse files Browse the repository at this point in the history
  • Loading branch information
dansiegel committed Dec 23, 2019
1 parent 9853eb3 commit 1c2ba75
Show file tree
Hide file tree
Showing 32 changed files with 459 additions and 127 deletions.
10 changes: 9 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,12 @@ indent_style = space

[*.targets]
indent_size = 2
indent_style = space
indent_style = space

[*.xaml]
indent_size = 2
indent_style = space

[*.plist]
indent_size = 2
indent_style = tab
28 changes: 28 additions & 0 deletions Sandbox/Xamarin/HelloWorld/HelloDialog/HelloDialog.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Xamarin.Forms" Version="3.6.0.344457" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\..\..\Source\Prism\Prism.csproj" />
<ProjectReference Include="..\..\..\..\Source\Xamarin\Prism.Forms\Prism.Forms.csproj" />
</ItemGroup>

<ItemGroup>
<Compile Update="Strings\Resources.Designer.cs">
<DependentUpon>Resources.resx</DependentUpon>
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
</Compile>
<EmbeddedResource Update="Strings\Resources.resx">
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<Generator>ResXFileCodeGenerator</Generator>
</EmbeddedResource>
</ItemGroup>

</Project>
23 changes: 23 additions & 0 deletions Sandbox/Xamarin/HelloWorld/HelloDialog/HelloDialogModule.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
using System;
using HelloDialog.ViewModels;
using HelloDialog.Views;
using Prism.Ioc;
using Prism.Modularity;

namespace HelloDialog
{
[ModuleDependency("HelloPageDialogModule")]
[AutoRegisterForNavigation]
public class HelloDialogModule : IModule
{
public void OnInitialized(IContainerProvider containerProvider)
{
}

public void RegisterTypes(IContainerRegistry containerRegistry)
{
containerRegistry.RegisterDialog<DemoDialog, DemoDialogViewModel>();
containerRegistry.RegisterDialog<UserAlert, UserAlertViewModel>();
}
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
using Prism.Navigation;
using Prism.AppModel;

namespace HelloWorld.ViewModels
namespace HelloDialog.ViewModels
{
public class DemoDialogViewModel : BindableBase, IDialogAware, IAutoInitialize
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using System.Collections.Generic;
using System.Linq;

namespace HelloWorld.ViewModels
namespace HelloDialog.ViewModels
{
public class DialogDemoPageViewModel : BindableBase
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using System.Collections.Generic;
using System.Linq;

namespace HelloWorld.ViewModels
namespace HelloDialog.ViewModels
{
public class UserAlertViewModel : BindableBase, IDialogAware
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
prism:ViewModelLocator.AutowireViewModel="True"
prism:DialogLayout.RelativeWidthRequest="{OnIdiom Default=0.75, Desktop=0.5}"
BackgroundColor="White"
x:Class="HelloWorld.Views.DemoDialog">
x:Class="HelloDialog.Views.DemoDialog">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Xamarin.Forms;

namespace HelloWorld.Views
namespace HelloDialog.Views
{
public partial class DemoDialog
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:prism="http://prismlibrary.com"
xmlns:i18n="clr-namespace:HelloWorld.Strings"
xmlns:i18n="clr-namespace:HelloDialog.Strings"
prism:ViewModelLocator.AutowireViewModel="True"
Padding="20"
BackgroundColor="Beige"
Title="Demo Dialogs"
x:Class="HelloWorld.Views.DialogDemoPage">
x:Class="HelloDialog.Views.DialogDemoPage">
<ScrollView>
<StackLayout>
<Label Text="{x:Static i18n:Resources.LoremIpsum}" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using Xamarin.Forms;

namespace HelloWorld.Views
namespace HelloDialog.Views
{
public partial class DialogDemoPage : ContentPage
public partial class DialogDemoPage
{
public DialogDemoPage()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
prism:DialogLayout.RelativeWidthRequest="{OnIdiom Default=0.75, Desktop=0.5}"
prism:DialogLayout.LayoutBounds="0.5,0.3,-1,-1"
Padding="20"
x:Class="HelloWorld.Views.UserAlert">
x:Class="HelloDialog.Views.UserAlert">
<Label Text="Enter your name" />
<Entry Text="{Binding Name}"
Placeholder="John Doe"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Xamarin.Forms;

namespace HelloWorld.Views
namespace HelloDialog.Views
{
public partial class UserAlert
{
Expand Down
16 changes: 16 additions & 0 deletions Sandbox/Xamarin/HelloWorld/HelloPageDialog/HelloPageDialog.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Xamarin.Forms" Version="3.6.0.344457" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\..\..\Source\Prism\Prism.csproj" />
<ProjectReference Include="..\..\..\..\Source\Xamarin\Prism.Forms\Prism.Forms.csproj" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
using System;
using Prism.Ioc;
using Prism.Modularity;
using Prism.Services;

namespace HelloPageDialog
{
public class HelloPageDialogModule : IModule
{
private IPageDialogService _pageDialogService { get; }

public HelloPageDialogModule(IPageDialogService pageDialogService)
{
_pageDialogService = pageDialogService;
}

public void OnInitialized(IContainerProvider containerProvider)
{
_pageDialogService.DisplayAlertAsync("Hello", "You just loaded the PageDialogService Module!", "Ok");
}

public void RegisterTypes(IContainerRegistry containerRegistry)
{

}
}
}
104 changes: 103 additions & 1 deletion Sandbox/Xamarin/HelloWorld/HelloWorld.sln
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@


Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.27703.2026
Expand All @@ -25,6 +25,10 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Prism.Forms", "..\..\..\Sou
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ModuleA", "ModuleA\ModuleA.csproj", "{F0D7441B-D48A-4F58-91FB-45FA441B0434}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HelloDialog", "HelloDialog\HelloDialog.csproj", "{A2798242-FE9E-49EA-A263-156ECAF58D80}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HelloPageDialog", "HelloPageDialog\HelloPageDialog.csproj", "{969CCFE6-7A95-4BE7-B426-2D0B00041F85}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Ad-Hoc|Any CPU = Ad-Hoc|Any CPU
Expand Down Expand Up @@ -533,6 +537,102 @@ Global
{F0D7441B-D48A-4F58-91FB-45FA441B0434}.Release|x64.Build.0 = Release|Any CPU
{F0D7441B-D48A-4F58-91FB-45FA441B0434}.Release|x86.ActiveCfg = Release|Any CPU
{F0D7441B-D48A-4F58-91FB-45FA441B0434}.Release|x86.Build.0 = Release|Any CPU
{A2798242-FE9E-49EA-A263-156ECAF58D80}.Ad-Hoc|Any CPU.ActiveCfg = Debug|Any CPU
{A2798242-FE9E-49EA-A263-156ECAF58D80}.Ad-Hoc|Any CPU.Build.0 = Debug|Any CPU
{A2798242-FE9E-49EA-A263-156ECAF58D80}.Ad-Hoc|ARM.ActiveCfg = Debug|Any CPU
{A2798242-FE9E-49EA-A263-156ECAF58D80}.Ad-Hoc|ARM.Build.0 = Debug|Any CPU
{A2798242-FE9E-49EA-A263-156ECAF58D80}.Ad-Hoc|iPhone.ActiveCfg = Debug|Any CPU
{A2798242-FE9E-49EA-A263-156ECAF58D80}.Ad-Hoc|iPhone.Build.0 = Debug|Any CPU
{A2798242-FE9E-49EA-A263-156ECAF58D80}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Debug|Any CPU
{A2798242-FE9E-49EA-A263-156ECAF58D80}.Ad-Hoc|iPhoneSimulator.Build.0 = Debug|Any CPU
{A2798242-FE9E-49EA-A263-156ECAF58D80}.Ad-Hoc|x64.ActiveCfg = Debug|Any CPU
{A2798242-FE9E-49EA-A263-156ECAF58D80}.Ad-Hoc|x64.Build.0 = Debug|Any CPU
{A2798242-FE9E-49EA-A263-156ECAF58D80}.Ad-Hoc|x86.ActiveCfg = Debug|Any CPU
{A2798242-FE9E-49EA-A263-156ECAF58D80}.Ad-Hoc|x86.Build.0 = Debug|Any CPU
{A2798242-FE9E-49EA-A263-156ECAF58D80}.AppStore|Any CPU.ActiveCfg = Debug|Any CPU
{A2798242-FE9E-49EA-A263-156ECAF58D80}.AppStore|Any CPU.Build.0 = Debug|Any CPU
{A2798242-FE9E-49EA-A263-156ECAF58D80}.AppStore|ARM.ActiveCfg = Debug|Any CPU
{A2798242-FE9E-49EA-A263-156ECAF58D80}.AppStore|ARM.Build.0 = Debug|Any CPU
{A2798242-FE9E-49EA-A263-156ECAF58D80}.AppStore|iPhone.ActiveCfg = Debug|Any CPU
{A2798242-FE9E-49EA-A263-156ECAF58D80}.AppStore|iPhone.Build.0 = Debug|Any CPU
{A2798242-FE9E-49EA-A263-156ECAF58D80}.AppStore|iPhoneSimulator.ActiveCfg = Debug|Any CPU
{A2798242-FE9E-49EA-A263-156ECAF58D80}.AppStore|iPhoneSimulator.Build.0 = Debug|Any CPU
{A2798242-FE9E-49EA-A263-156ECAF58D80}.AppStore|x64.ActiveCfg = Debug|Any CPU
{A2798242-FE9E-49EA-A263-156ECAF58D80}.AppStore|x64.Build.0 = Debug|Any CPU
{A2798242-FE9E-49EA-A263-156ECAF58D80}.AppStore|x86.ActiveCfg = Debug|Any CPU
{A2798242-FE9E-49EA-A263-156ECAF58D80}.AppStore|x86.Build.0 = Debug|Any CPU
{A2798242-FE9E-49EA-A263-156ECAF58D80}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A2798242-FE9E-49EA-A263-156ECAF58D80}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A2798242-FE9E-49EA-A263-156ECAF58D80}.Debug|ARM.ActiveCfg = Debug|Any CPU
{A2798242-FE9E-49EA-A263-156ECAF58D80}.Debug|ARM.Build.0 = Debug|Any CPU
{A2798242-FE9E-49EA-A263-156ECAF58D80}.Debug|iPhone.ActiveCfg = Debug|Any CPU
{A2798242-FE9E-49EA-A263-156ECAF58D80}.Debug|iPhone.Build.0 = Debug|Any CPU
{A2798242-FE9E-49EA-A263-156ECAF58D80}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
{A2798242-FE9E-49EA-A263-156ECAF58D80}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
{A2798242-FE9E-49EA-A263-156ECAF58D80}.Debug|x64.ActiveCfg = Debug|Any CPU
{A2798242-FE9E-49EA-A263-156ECAF58D80}.Debug|x64.Build.0 = Debug|Any CPU
{A2798242-FE9E-49EA-A263-156ECAF58D80}.Debug|x86.ActiveCfg = Debug|Any CPU
{A2798242-FE9E-49EA-A263-156ECAF58D80}.Debug|x86.Build.0 = Debug|Any CPU
{A2798242-FE9E-49EA-A263-156ECAF58D80}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A2798242-FE9E-49EA-A263-156ECAF58D80}.Release|Any CPU.Build.0 = Release|Any CPU
{A2798242-FE9E-49EA-A263-156ECAF58D80}.Release|ARM.ActiveCfg = Release|Any CPU
{A2798242-FE9E-49EA-A263-156ECAF58D80}.Release|ARM.Build.0 = Release|Any CPU
{A2798242-FE9E-49EA-A263-156ECAF58D80}.Release|iPhone.ActiveCfg = Release|Any CPU
{A2798242-FE9E-49EA-A263-156ECAF58D80}.Release|iPhone.Build.0 = Release|Any CPU
{A2798242-FE9E-49EA-A263-156ECAF58D80}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
{A2798242-FE9E-49EA-A263-156ECAF58D80}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
{A2798242-FE9E-49EA-A263-156ECAF58D80}.Release|x64.ActiveCfg = Release|Any CPU
{A2798242-FE9E-49EA-A263-156ECAF58D80}.Release|x64.Build.0 = Release|Any CPU
{A2798242-FE9E-49EA-A263-156ECAF58D80}.Release|x86.ActiveCfg = Release|Any CPU
{A2798242-FE9E-49EA-A263-156ECAF58D80}.Release|x86.Build.0 = Release|Any CPU
{969CCFE6-7A95-4BE7-B426-2D0B00041F85}.Ad-Hoc|Any CPU.ActiveCfg = Debug|Any CPU
{969CCFE6-7A95-4BE7-B426-2D0B00041F85}.Ad-Hoc|Any CPU.Build.0 = Debug|Any CPU
{969CCFE6-7A95-4BE7-B426-2D0B00041F85}.Ad-Hoc|ARM.ActiveCfg = Debug|Any CPU
{969CCFE6-7A95-4BE7-B426-2D0B00041F85}.Ad-Hoc|ARM.Build.0 = Debug|Any CPU
{969CCFE6-7A95-4BE7-B426-2D0B00041F85}.Ad-Hoc|iPhone.ActiveCfg = Debug|Any CPU
{969CCFE6-7A95-4BE7-B426-2D0B00041F85}.Ad-Hoc|iPhone.Build.0 = Debug|Any CPU
{969CCFE6-7A95-4BE7-B426-2D0B00041F85}.Ad-Hoc|iPhoneSimulator.ActiveCfg = Debug|Any CPU
{969CCFE6-7A95-4BE7-B426-2D0B00041F85}.Ad-Hoc|iPhoneSimulator.Build.0 = Debug|Any CPU
{969CCFE6-7A95-4BE7-B426-2D0B00041F85}.Ad-Hoc|x64.ActiveCfg = Debug|Any CPU
{969CCFE6-7A95-4BE7-B426-2D0B00041F85}.Ad-Hoc|x64.Build.0 = Debug|Any CPU
{969CCFE6-7A95-4BE7-B426-2D0B00041F85}.Ad-Hoc|x86.ActiveCfg = Debug|Any CPU
{969CCFE6-7A95-4BE7-B426-2D0B00041F85}.Ad-Hoc|x86.Build.0 = Debug|Any CPU
{969CCFE6-7A95-4BE7-B426-2D0B00041F85}.AppStore|Any CPU.ActiveCfg = Debug|Any CPU
{969CCFE6-7A95-4BE7-B426-2D0B00041F85}.AppStore|Any CPU.Build.0 = Debug|Any CPU
{969CCFE6-7A95-4BE7-B426-2D0B00041F85}.AppStore|ARM.ActiveCfg = Debug|Any CPU
{969CCFE6-7A95-4BE7-B426-2D0B00041F85}.AppStore|ARM.Build.0 = Debug|Any CPU
{969CCFE6-7A95-4BE7-B426-2D0B00041F85}.AppStore|iPhone.ActiveCfg = Debug|Any CPU
{969CCFE6-7A95-4BE7-B426-2D0B00041F85}.AppStore|iPhone.Build.0 = Debug|Any CPU
{969CCFE6-7A95-4BE7-B426-2D0B00041F85}.AppStore|iPhoneSimulator.ActiveCfg = Debug|Any CPU
{969CCFE6-7A95-4BE7-B426-2D0B00041F85}.AppStore|iPhoneSimulator.Build.0 = Debug|Any CPU
{969CCFE6-7A95-4BE7-B426-2D0B00041F85}.AppStore|x64.ActiveCfg = Debug|Any CPU
{969CCFE6-7A95-4BE7-B426-2D0B00041F85}.AppStore|x64.Build.0 = Debug|Any CPU
{969CCFE6-7A95-4BE7-B426-2D0B00041F85}.AppStore|x86.ActiveCfg = Debug|Any CPU
{969CCFE6-7A95-4BE7-B426-2D0B00041F85}.AppStore|x86.Build.0 = Debug|Any CPU
{969CCFE6-7A95-4BE7-B426-2D0B00041F85}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{969CCFE6-7A95-4BE7-B426-2D0B00041F85}.Debug|Any CPU.Build.0 = Debug|Any CPU
{969CCFE6-7A95-4BE7-B426-2D0B00041F85}.Debug|ARM.ActiveCfg = Debug|Any CPU
{969CCFE6-7A95-4BE7-B426-2D0B00041F85}.Debug|ARM.Build.0 = Debug|Any CPU
{969CCFE6-7A95-4BE7-B426-2D0B00041F85}.Debug|iPhone.ActiveCfg = Debug|Any CPU
{969CCFE6-7A95-4BE7-B426-2D0B00041F85}.Debug|iPhone.Build.0 = Debug|Any CPU
{969CCFE6-7A95-4BE7-B426-2D0B00041F85}.Debug|iPhoneSimulator.ActiveCfg = Debug|Any CPU
{969CCFE6-7A95-4BE7-B426-2D0B00041F85}.Debug|iPhoneSimulator.Build.0 = Debug|Any CPU
{969CCFE6-7A95-4BE7-B426-2D0B00041F85}.Debug|x64.ActiveCfg = Debug|Any CPU
{969CCFE6-7A95-4BE7-B426-2D0B00041F85}.Debug|x64.Build.0 = Debug|Any CPU
{969CCFE6-7A95-4BE7-B426-2D0B00041F85}.Debug|x86.ActiveCfg = Debug|Any CPU
{969CCFE6-7A95-4BE7-B426-2D0B00041F85}.Debug|x86.Build.0 = Debug|Any CPU
{969CCFE6-7A95-4BE7-B426-2D0B00041F85}.Release|Any CPU.ActiveCfg = Release|Any CPU
{969CCFE6-7A95-4BE7-B426-2D0B00041F85}.Release|Any CPU.Build.0 = Release|Any CPU
{969CCFE6-7A95-4BE7-B426-2D0B00041F85}.Release|ARM.ActiveCfg = Release|Any CPU
{969CCFE6-7A95-4BE7-B426-2D0B00041F85}.Release|ARM.Build.0 = Release|Any CPU
{969CCFE6-7A95-4BE7-B426-2D0B00041F85}.Release|iPhone.ActiveCfg = Release|Any CPU
{969CCFE6-7A95-4BE7-B426-2D0B00041F85}.Release|iPhone.Build.0 = Release|Any CPU
{969CCFE6-7A95-4BE7-B426-2D0B00041F85}.Release|iPhoneSimulator.ActiveCfg = Release|Any CPU
{969CCFE6-7A95-4BE7-B426-2D0B00041F85}.Release|iPhoneSimulator.Build.0 = Release|Any CPU
{969CCFE6-7A95-4BE7-B426-2D0B00041F85}.Release|x64.ActiveCfg = Release|Any CPU
{969CCFE6-7A95-4BE7-B426-2D0B00041F85}.Release|x64.Build.0 = Release|Any CPU
{969CCFE6-7A95-4BE7-B426-2D0B00041F85}.Release|x86.ActiveCfg = Release|Any CPU
{969CCFE6-7A95-4BE7-B426-2D0B00041F85}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand All @@ -547,6 +647,8 @@ Global
{4809258F-9F28-474E-9796-DA0183BDADCB} = {FAF925D4-455B-448F-B048-6469DE52D341}
{152DA85C-13F4-4427-850C-052CBBCDD4B0} = {FAF925D4-455B-448F-B048-6469DE52D341}
{F0D7441B-D48A-4F58-91FB-45FA441B0434} = {930CB56C-83C6-45A6-8B71-1F85BB7A08F5}
{A2798242-FE9E-49EA-A263-156ECAF58D80} = {930CB56C-83C6-45A6-8B71-1F85BB7A08F5}
{969CCFE6-7A95-4BE7-B426-2D0B00041F85} = {930CB56C-83C6-45A6-8B71-1F85BB7A08F5}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {9E406BB3-20B9-4659-9660-A29BE45C4626}
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
Expand Down Expand Up @@ -108,6 +108,7 @@
<Content Include="Assets\LargeTile.scale-100.png" />
<Content Include="Assets\LargeTile.scale-200.png" />
<Content Include="Assets\LargeTile.scale-400.png" />
<Content Include="Assets\prism-sandbox-logo.png" />
<Content Include="Assets\SmallTile.scale-100.png" />
<Content Include="Assets\SmallTile.scale-200.png" />
<Content Include="Assets\SmallTile.scale-400.png" />
Expand Down Expand Up @@ -146,7 +147,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Xamarin.Forms" Version="3.6.0.344457" />
<PackageReference Include="Microsoft.NETCore.UniversalWindowsPlatform" Version="6.2.8" />
<PackageReference Include="Microsoft.NETCore.UniversalWindowsPlatform" Version="6.2.9" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\..\..\Source\Prism\Prism.csproj">
Expand Down
8 changes: 5 additions & 3 deletions Sandbox/Xamarin/HelloWorld/HelloWorld/HelloWorld/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,16 +71,18 @@ protected override void RegisterTypes(IContainerRegistry containerRegistry)
containerRegistry.RegisterForNavigation<NavigationPage>();
containerRegistry.RegisterForNavigation<MyNavigationPage>();
containerRegistry.RegisterForNavigation<MyMasterDetail>();
containerRegistry.RegisterForNavigation<DialogDemoPage, DialogDemoPageViewModel>();
containerRegistry.RegisterDialog<DemoDialog, DemoDialogViewModel>();
containerRegistry.RegisterDialog<UserAlert, UserAlertViewModel>();
containerRegistry.RegisterForNavigation<ModulesPage, ModulesPageViewModel>();

containerRegistry.RegisterForNavigation<ModulesPage, ModulesPageViewModel>();
}

protected override void ConfigureModuleCatalog(IModuleCatalog moduleCatalog)
{
moduleCatalog.AddModule<ModuleA.ModuleAModule>();
//moduleCatalog.AddModule(new ModuleInfo(typeof(ModuleA.ModuleAModule)));
//moduleCatalog.AddModule(new ModuleInfo(typeof(ModuleA.ModuleAModule), "ModuleA", InitializationMode.OnDemand));
moduleCatalog.AddModule<HelloDialog.HelloDialogModule>(InitializationMode.OnDemand);
moduleCatalog.AddModule<HelloPageDialog.HelloPageDialogModule>(InitializationMode.OnDemand);
}

protected override void OnStart ()
Expand Down
Loading

0 comments on commit 1c2ba75

Please sign in to comment.