Example #1
0
        protected override void OnStart()
        {
            // App.xaml により Resources = AppTheme が設定されている状態で開始

            if (IsOtherTheme)
            {
                Resources = new OtherTheme();                 // リソース差し替え
            }

            MainPage = new XFThemePage();
        }
Example #2
0
 public void ApplyOtherTheme()
 {
     MainPage.Parent = null;
     Resources       = new OtherTheme();
     MainPage.Parent = this;              // Parent を再設定することにより View 内の DynamicResource プロパティを更新させる
 }