Apply Lightweight Templates

4 posts, 0 answers
  1. Marco
    Marco avatar
    11 posts
    Member since:
    Aug 2012

    Posted 14 Aug 2013 Link to this post

    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
  2. Vanya Pavlova
    Admin
    Vanya Pavlova avatar
    2019 posts

    Posted 14 Aug 2013 Link to this post

    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 >>
  3. Marco
    Marco avatar
    11 posts
    Member since:
    Aug 2012

    Posted 14 Aug 2013 Link to this post

    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
  4. Vanya Pavlova
    Admin
    Vanya Pavlova avatar
    2019 posts

    Posted 15 Aug 2013 Link to this post

    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 >>
Back to Top