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
(1)
11,589 times
Add to favorites
2/1/2011
E-mail Twitter del.icio.us 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