Skinned Application Sample

This sample illustrates how to implement an application that supports dynamically-swappable skins. Building the Sample Install the Windows Software Development Kit (SDK) and open its build environment command window.

5 Star
11,589 times
Add to favorites
E-mail Twitter Digg Facebook
Partial Public Class App
    Inherits System.Windows.Application

    Private Sub App_Startup(ByVal sender As Object, ByVal e As StartupEventArgs)
        MyBase.Properties.Item("Blue") = DirectCast(Application.LoadComponent(New Uri("BlueSkin.xaml", UriKind.Relative)), ResourceDictionary)
        MyBase.Properties.Item("Yellow") = DirectCast(Application.LoadComponent(New Uri("YellowSkin.xaml", UriKind.Relative)), ResourceDictionary)
    End Sub

End Class