How to use a theme in wpf?

3

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

    
asked by anonymous 22.05.2015 / 20:18

1 answer

2

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.

    
06.11.2015 / 13:39