Created
April 22, 2016 05:05
-
-
Save tstpierre/faca07bf0215cafa91f369ced27b7941 to your computer and use it in GitHub Desktop.
Prism.Forms App.xaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8" ?> | |
<prism:PrismApplication xmlns="http://xamarin.com/schemas/2014/forms" | |
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | |
xmlns:prism="clr-namespace:Prism.Unity;assembly=Prism.Unity.Forms" | |
x:Class="MyApp.App"> | |
<prism:PrismApplication.Resources> | |
<ResourceDictionary> | |
<Color x:Key="backgroundColor">#33302E</Color> | |
</ResourceDictionary> | |
</prism:PrismApplication.Resources> | |
</prism:PrismApplication> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Prism.Unity; | |
namespace MyApp { | |
public partial class App : PrismApplication { | |
protected override void OnInitialized() { | |
InitializeComponent(); | |
NavigationService.Navigate("Main"); | |
} | |
protected override void RegisterTypes() { | |
Container.RegisterTypeForNavigation<Views.Main>(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment