コード例 #1
0
        private void Application_Startup(object sender, StartupEventArgs e)
        {
            // get the build options if they exist
            if (Settings.Default["BuildOptions"] == null)
            {
                BuildOptions = new BuildContextOptions();
            }
            else
            {
                BuildOptions = Settings.Default["BuildOptions"] as BuildContextOptions;
            }


            // todo: apply theme
            try
            {
                Uri uri = new Uri(
                    "PresentationFramework.Royale;V3.0.0.0;31bf3856ad364e35;component\\themes/Royale.normalcolor.xaml",
                    UriKind.Relative);
                Resources.MergedDictionaries.Add(LoadComponent(uri) as ResourceDictionary);
            } catch {}
        }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BuildContext"/> class.
 /// </summary>
 /// <param name="options">Build options.</param>
 public BuildContext(BuildContextOptions options)
 {
     Options = options;
 }
コード例 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BuildContext"/> class.
 /// </summary>
 /// <param name="options">Build options.</param>
 internal BuildContext(BuildContextOptions options)
 {
     Options = options;
 }