This is a migrated thread and some comments may be shown as answers.

Apply Lightweight Templates

3 Answers 222 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Marco
Top achievements
Rank 1
Iron
Iron
Iron
Marco asked on 14 Aug 2013, 02:40 PM
Hello,

we are trying to apply the new lightweight templates in our WPF .NET 4.5 project. We follow the documentation you provide. But it doesnt work.
We dont know where to get the correct themes dll which is referenced in the resource dictionaries

<ResourceDictionary Source="/Telerik.Windows.Themes.Windows8;component/Themes/System.Windows.xaml"/>


Using the self-built assambly from themes.implicit produces following errors (~200):

e.g.: 
Error 95 The name "Windows8Resource" does not exist in the namespace "clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls,Version=2013.2.0724.40,Culture=neutral,PublicKeyToken=5803cfa389c90ce7".

Error 2 The name "Windows8ResourceDictionary" does not exist in the namespace "clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls,Version=2013.2.0724.40,Culture=neutral,PublicKeyToken=5803cfa389c90ce7". 

Error 3 The name "Windows8Colors" does not exist in the namespace "clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls,Version=2013.2.0724.40,Culture=neutral,PublicKeyToken=5803cfa389c90ce7". 

Changing the Telerik dependencies from 4.0 to 4.5 in the themes.implicit project does not work either.

Could you please provide any help in this case.

regards
Marco Gruhl

3 Answers, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 14 Aug 2013, 03:26 PM
Hello Marco,

 

Generally, you do not have to rebuild a theme project from this folder in order to use lightweight templates.  You may directly reference the desired XAML files from Windows8 dll as described in our online documentation.

With assembly built-in by your side we may only suggest what happens. 
Would it be possible to try to isolate the problem in a small runnable project and sent it back to us as an attachment to this thread?

Furthermore we may prepare ready to use project, which demonstrates how to use these styles.   




Regards,
Vanya Pavlova
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
0
Marco
Top achievements
Rank 1
Iron
Iron
Iron
answered on 14 Aug 2013, 03:55 PM
Thank you for your fast response.

The problem was caused by directly including the xaml files in our project. we removed them and it worked.

But we had to rebuild the Telerik.Windows.Themes.Windows8.dll project from source (and update the references to the 4.5 controls).

Is there any other way to get the dll file?

regards
Marco Gruhl
0
Vanya Pavlova
Telerik team
answered on 15 Aug 2013, 07:55 AM
Hi Marco,

 

Thank you for getting back to us! Can you please share with us the extact reason why do you need to rebuild the Windows8 project. We ship binaries for both 4.0/4.5 which you can directly reference in your project.


Regards,
Vanya Pavlova
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
GridView
Asked by
Marco
Top achievements
Rank 1
Iron
Iron
Iron
Answers by
Vanya Pavlova
Telerik team
Marco
Top achievements
Rank 1
Iron
Iron
Iron
Share this question
or