Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

Tagged as

WPF: Customize your Application with Styles and Control Templates (Part 2 of 2)

, 5 Jun 2010 CPOL
Part two of the two-part tutorial on how to customize your WPF application using Styles and Control Templates
BlackCrystal_Code.zip
BlackCrystal
bin
Debug
BlackCrystal.vshost.exe
BlackCrystal.vshost.exe.manifest
Release
BlackCrystal.vshost.exe
BlackCrystal.suo
BlackCrystal.vbproj.user
My Project
MyExtensions
Settings.settings
obj
x86
Debug
BlackCrystal_MarkupCompile.i.cache
DesignTimeResolveAssemblyReferences.cache
DesignTimeResolveAssemblyReferencesInput.cache
TempPE
My Project.Resources.Designer.vb.dll
Release
BlackCrystal_MarkupCompile.i.cache
DesignTimeResolveAssemblyReferences.cache
DesignTimeResolveAssemblyReferencesInput.cache
TempPE
My Project.Resources.Designer.vb.dll
BlackCrystal.suo
BlackCrystal_Demo.zip
BlackCrystal.exe
BlackCrystal.vshost.exe
BlackCrystal.vshost.exe.manifest
PresentationFramework.Aero.dll
PresentationFramework.Luna.dll
Class MainWindow 

    Private Sub MainWindow_Loaded(ByVal sender As Object, ByVal e As System.Windows.RoutedEventArgs) Handles Me.Loaded

    End Sub

    Public Sub New()

        ' This call is required by the designer.
        InitializeComponent()

        ' Add any initialization after the InitializeComponent() call.
        Dim x As New System.Data.DataSet
        x.Tables.Add("tabla1")
        x.Tables(0).Columns.Add("Columna1")
        x.Tables(0).Columns.Add("Columna2")
        x.Tables(0).Columns.Add("Columna3")
        x.Tables(0).Columns.Add("Columna4")

        For i As Integer = 0 To 20
            x.Tables(0).Rows.Add(New String() {i.ToString, "prueba", i.ToString, "prueba"})
        Next
        x.AcceptChanges()
        Me.DataContext = x
    End Sub
End Class

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

JOSUEYERAY
Software Developer Plain Concepts
Spain Spain
MCP - .NET Framework 2.0 Application Development Fundamentals
MCTS - .NET Framework 3.5 Windows Forms Application
MCTS - .NET Framework 3.5 Windows Presentation Foundation

| Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.141220.1 | Last Updated 5 Jun 2010
Article Copyright 2010 by JOSUEYERAY
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid