var paletteHelper = new PaletteHelper();//Retrieve the app's existing themeITheme theme = paletteHelper.GetTheme();//Change the base theme to Darktheme.SetBaseTheme(Theme.Dark);//or theme.SetBaseTheme(Theme.Light);//Change all of the primary colors to Redtheme.SetPrimaryColor(Colors.Red);//Change all of the secondary colors to Bluetheme.SetSecondaryColor(Colors.Blue);//You can also change a single color on the theme, and optionally set the corresponding foreground colortheme.PrimaryMid = new ColorPair(Colors.Brown, Colors.White);//Change the app's current themepaletteHelper.SetTheme(theme);
