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

Custom Theme help

8 Answers 206 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ariel Ben Horesh
Top achievements
Rank 1
Ariel Ben Horesh asked on 30 Nov 2011, 05:38 PM
Hey Guys (and Gals)
I have spend today a few hours creating a custom theme for a new WPF project I've started to work on.
This project includes Ribbon and a DockManager.
We are planning on relying on the ExpressionDark theme.
So I tried to create a custom theme project and use the xamls deployed with the install as a base line.
but I couldn't make it work.
Almost all xamls had reference to 
xmlns:external="clr-namespace:Telerik.Windows.Controls.External"
which I coudln't resolve.
I tried to make them styles implicit but also it didn't avail.
Can you assist me please,
Ariel

8 Answers, 1 is accepted

Sort by
0
Ariel Ben Horesh
Top achievements
Rank 1
answered on 30 Nov 2011, 06:22 PM
Important note, I've upgraded to the newest release Q3.
To see if my issues are solved with the new release, but it is still the same.
0
Ariel Ben Horesh
Top achievements
Rank 1
answered on 01 Dec 2011, 08:30 AM
If I may also add, I did the practice with the Silverlight themes and it worked quite alright with the guide you published.
It was not smooth but I managed to do that.
With the WPF version I was surprisingly disappointed.
0
Sia
Telerik team
answered on 01 Dec 2011, 06:07 PM
Hello Ariel,

We are sorry to hear that you have difficulties with your custom theme for WPF. We understand your point and we are already working on a new help topic covering all issues related to the custom themes in WPF.

Meanwhile please replace all references to
xmlns:external="clr-namespace:Telerik.Windows.Controls.External"
with references to your custom theme project.
Also you need to replace all Expression_DarkThemeExternal with the name of your custom theme.
namespace CustomTheme
{
    [ThemeLocation(ThemeLocation.External)]
    public class MyCustomTheme:Telerik.Windows.Controls.Theme
    {
        //test
    }
}

Please try this and let me know whether this helps. If you need additional help, I will prepare a sample project for you.

All the best,
Sia
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Ariel Ben Horesh
Top achievements
Rank 1
answered on 01 Dec 2011, 06:13 PM
Thanks, 
I'm trying it now.

I would appreciate if you will be able to be responsive for my feedback in the near minutes.
Thanks,
Ariel
0
Ariel Ben Horesh
Top achievements
Rank 1
answered on 01 Dec 2011, 06:31 PM
Yes, it works!!! :D

Also as a side note that when you look on the theme projects there are files there that are not part of he project it self.
for example all the directory containing the generic.xaml, etc is not included in the project.
I think it is a good idea to revise the documentation and code for that.

Thank you 
Ariel
0
Sia
Telerik team
answered on 01 Dec 2011, 06:41 PM
Hi Ariel,

Thank you for your feedback and I am happy to hear that you managed to do it by yourself. Please do not hesitate to contact us again if something else arise.

All the best,
Sia
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Ariel Ben Horesh
Top achievements
Rank 1
answered on 01 Dec 2011, 07:08 PM
Perhaps you can make this public, so other people can search for this.
Ariel
0
Sia
Telerik team
answered on 01 Dec 2011, 07:58 PM
Hi Ariel,

It is public now.

Regards,
Sia
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
General Discussions
Asked by
Ariel Ben Horesh
Top achievements
Rank 1
Answers by
Ariel Ben Horesh
Top achievements
Rank 1
Sia
Telerik team
Share this question
or