简体   繁体   中英

Using Codeplex templates in WPF

I had created a basic application using Visual studio 2010. To modify the existing look and for improving GUI, I tried browsing for templates and found Codeplex. And then downloaded an exe & installed it.

No clue regarding what should be done after that! checked out the visual studio project settings. Nothing regarding templates.

I am new to WPF. Any ideas how to proceed ? There are many articles around stating that the themes can be found in codeplex but none about how 2 use it.

Do you mean the WPF Themes? Please check the link http://wpf.codeplex.com/wikipage?title=WPF%20Themes

OK Guys, Lets take this one step at a time. After crunching hours, I did apply the Codeplex template to my project.

(This may sound simple for others.(anyways for the sake of beginners like me!)

First,

1) Right click the references tab (found under the solution explorer of your project).

2) Click "Add Reference" and navigate to the 'Browse' tab and choose WPFToolkit.dll

3) This is the trickiest part. For this, download the WPFToolKit.msi from codeplex 1 Link .

4) You will need .net 3.5 sp1 framework for this.Refer to my answer at 1 Warning here

5) After successful installation, you will be shown nothing except the installation status.

6) So now, for the WPFTookKit.dll browse your program files. For me, it was found in "C:\\Program Files\\WPF Toolkit\\v3.5.50211.1"

7) After this has been done, follow the next step of adding the xaml file to your project.

8) As Oleg said, right-click on the project in the Solution Explorer, choose Add --> Existing File and select the appropriate .xaml file (In my case I used a expression dark template from here )

9)Now double click the App.XAML file and under add the following entry [] without '[' and ']'.

10) Refresh MAINWINDOW.XAML and by this time, your theme should have been applied.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM