How to use a theme in wpf?

Posted on

Question :

I’m trying to use a WPF theme package, but I can not call it, when I do the use it says it’s missing the reference and I can not find any tutorials or anything current about it.

Itriedtoinstallusingnugetandthethemesofthatlink

link

NOTE: I am using VS12 and VS13

    

Answer :

I know the question is old but it can help others, I know two ways to do it:

1st Form is Via Nuget: Right click on the project and select the “Manage NuGet Packages” option and install WPFThemes.

ItwillsettheWPF.Themesreferenceautomatically

Nowinyourmainform,maketheimagebelow

Notethatthiswaythethemewillonlybeappliedwhentheprojectisrunning

2ndForm:Downloadingthethemacodeinthelink: link

Add the thema file you downloaded to your project and within the app.xaml add the reference to it:

Notethatthiswayitloadsintodesignmodeandyouhaveaccesstothecodetoedittosuityourpreference.

Obj:Ifitdoesnotappearfirst,rebuilditinyoursolution,closeitandopenvisualstudio.

    

Leave a Reply

Your email address will not be published. Required fields are marked *