Der (Microsoft) Office Doktor und Softwarearchitekt

Hinweise, Tipps und Tricks für Microsoft Office VBA Entwickler

Aero-Theme unter Windows XP

Ja, ich weiß … zu dieser Info gibt es im Netz schon einige Myriaden Einträge. Trotzdem möchte ich das Thema kurz aufgreifen: Wie kann man eine WPF-Anwendung unter Windows XP mit einem anderen Theme, zum Beispiel dem Aero Theme aus Windows Vista ausstatten?

Der Schlüssel dazu liegt in folgendem Ressourcen-Eintrag üblicherweise in der Datei App.xaml:

<Application x:Class="Vista.App"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    StartupUri="Window1.xaml">

    <Application.Resources>
        <ResourceDictionary
            Source="/PresentationFramework.Aero, Version=3.0.0.0,
                    Culture=neutral, PublicKeyToken=31bf3856ad364e35,
                    ProcessorArchitecture=MSIL;
                    component/themes/aero.normalcolor.xaml" />
    </Application.Resources>

</Application>

Wichtig ist der markierte Teil: Wie kommt man auf so ein Zeug?

Das hatte mich immer schon interessiert. Allerdings bin ich der Sache nie nachgegegangen, weil mir einfach die Zeit dazu gefehlt hat. Also, was soll das ganze?

Ich bin der Sache nachgegangen und darauf gekommen, dass hier eine Assembly im Global Assembly Cache referenziert wird. Ich sah also unter C:\WINDOWS\ASSEMBLY nach und fand tatsächlich folgende Dateien:

PresentationFramework.Aero
PresentationFramework.Classic
PresentationFramework.Luna
PresentationFramework.Royale

Aha! Hier steckt das Layout! Doch wie kommt man auf all die anderen Angaben im Source-String (siehe oben)?

Auch das ist einfach zu erklären, denn wenn man sich die Spalten im Windows Explorer ansieht, werden dort genau die Informationen geliefert, die in unserem Source-String stehen: Version, Culture, PublicKey und ProcessorArchitecture.

In der DLL scheint dann die Datei aero.normalcolor.xaml zu stecken. Das weiß ich aber nicht genau. Doch wenn ich’s erfahre, schreibe ich Euch. Ganz bestimmt!

Kommentarfunktion ist deaktiviert

Copyright © 2010 by: Der (Microsoft) Office Doktor und Softwarearchitekt • Design by: BlogPimp / Appelt Mediendesign • Lizenz: Creative Commons BY-NC-SA.


Michael Scholz

Microsoft Office Makros AddIns VBA Programmierung Entwicklung
Microsoft Office Makros
Microsoft Office AddIns
Microsoft Office VBA
Microsoft Office Programmierung
Microsoft Office Entwicklung
Microsoft Word Excel Powerpoint Access
Microsoft Word
Microsoft Excel
Microsoft Powerpoint
Microsoft Access
Access Programmierung
Word Programmierung
Excel Programmierung 
Powerpoint Programmierung

Office Doktor Microsoft Office Makros AddIns VBA Programmierung Entwicklung
Office Doktor Microsoft Office Makros
Office Doktor Microsoft Office AddIns
Office Doktor Microsoft Office VBA
Office Doktor Microsoft Office Programmierung
Office Doktor Microsoft Office Entwicklung
Office Doktor Microsoft Word Excel Powerpoint Access
Office Doktor Microsoft Word
Office Doktor Microsoft Excel
Office Doktor Microsoft Powerpoint
Office Doktor Microsoft Access
Office Doktor Access Programmierung
Office Doktor Word Programmierung
Office Doktor Excel Programmierung 
Office Doktor Powerpoint Programmierung

Softwarearchitekt Microsoft Office Makros AddIns VBA Programmierung Entwicklung
Softwarearchitekt Microsoft Office Makros
Softwarearchitekt Microsoft Office AddIns
Softwarearchitekt Microsoft Office VBA
Softwarearchitekt Microsoft Office Programmierung
Softwarearchitekt Microsoft Office Entwicklung
Softwarearchitekt Microsoft Word Excel Powerpoint Access
Softwarearchitekt Microsoft Word
Softwarearchitekt Microsoft Excel
Softwarearchitekt Microsoft Powerpoint
Softwarearchitekt Microsoft Access
Softwarearchitekt Access Programmierung
Softwarearchitekt Word Programmierung
Softwarearchitekt Excel Programmierung 
Softwarearchitekt Powerpoint Programmierung