StyleManager.Theme does not exsist

4 posts, 0 answers
  1. Jason
    Jason avatar
    1 posts
    Member since:
    May 2014

    Posted 24 Mar Link to this post

    I have an old .net application that is no longer supported or being devolped. I need to make some changes and would also like to fancy up the interface. I used justdecompile to decompile it but I am getting a lot of XAML errors -
    The property 'StyleManager.Theme' does not exist in XML namespace 'http://schemas.microsoft.com/winfx/2006/xaml/presentation'. Line 57 Position 116

    .
    The application uses

    Telerik.Windows.Controls.Data.dll,Telerik.Windows.Controls.dll,Telerik.Windows.Controls.Docking.dll, Telerik.Windows.Controls.Input.dll, Telerik.Windows.Controls.Navigation.dll,Telerik.Windows.Data.dll

    I ran the upgrade wizard on the project and it completed without any error I think it upgraded from Telerik version 2013. Can I upgrade this project to have no XAML and only use implictit styles?

     

     

  2. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 28 Mar Link to this post

    Hello Jay,

    Yes, you can upgrade the project to use Implicit Styles, you can check the following topic on how this approach works:
    Setting a Theme (Using Implicit Styles)

    However, please note that StyleManager is still available and it is strange that you're receiving this error. Please check whether all the references are the same version and are coming from the same location.

    Regards,
    Yana
    Telerik
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Adeline
    Adeline avatar
    1 posts
    Member since:
    Apr 2016

    Posted 02 Apr in reply to Yana Link to this post

    Hi all references are the same version. below is error and code

    The property 'StyleManager.Theme' does not exist in XML namespace 'http://schemas.microsoft.com/winfx/2006/xaml/presentation'.

    <TextBox Name="txtBoxKeyword" Grid.Column="1" Margin="0 1" FontSize="18" VerticalContentAlignment="Center" telerik:StyleManager.Theme="Windows7" TextChanged="txtBoxKeyword_TextChanged" />

  5. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 04 Apr Link to this post

    Hello Adeline,

    The telerik namespace should be defined like this:



    Regards,
    Yana
    Telerik
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Back to Top