Class MainWindow Private Sub Window_Loaded(sender As Object, e As Windows.RoutedEventArgs) ' textblock1.Style = CType(Resources("TitleText"), Windows.Style) ' End Sub End Class