Why is my theme not working while in design mode inside Expression Blend? I would think this would be very straight forward to pull up? It is always showing the default Office Black theme. What do I need to get the correct theme to show up in design mode while in Blend correctly? What is really interesting is that the VS2010 XAML editor does correctly show the theme in design mode however Expression Blend is not grabbing it. Is this some assembly reference location issue of some sort?
Note this is what I am using for the theme at the control level and like I mentioned it does show up in VS 2010 design mode.
<telerikNavigation:RadPanelBar x:Name="MenuStackPanel"
Orientation="Vertical"
ItemsSource="{Binding NavigationsPanelItems}"
telerik:StyleManager.Theme="Expression_Dark"/>
OK, I figured it out. When using a design class for design data in Expression Blend I had to put the following into my constructor for the theme to get render while in design mode.
here is a snipped of my XAML UserControl.
<UserControl xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:telerikNavigation="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:AdminSL="clr-namespace:Admin.SL"
x:Class="Admin.SL.MainWindow"
d:DataContext="{d:DesignInstance IsDesignTimeCreatable=True, Type=AdminSL:MainWindowDesign}"
mc:Ignorable="d">
Thanks in advance,
Jake
Note this is what I am using for the theme at the control level and like I mentioned it does show up in VS 2010 design mode.
<telerikNavigation:RadPanelBar x:Name="MenuStackPanel"
Orientation="Vertical"
ItemsSource="{Binding NavigationsPanelItems}"
telerik:StyleManager.Theme="Expression_Dark"/>
OK, I figured it out. When using a design class for design data in Expression Blend I had to put the following into my constructor for the theme to get render while in design mode.
public partial class MainWindowDesign}
{
public MainWindowDesign()
{
StyleManager.ApplicationTheme = new Expression_DarkTheme();
}
here is a snipped of my XAML UserControl.
<UserControl xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:telerikNavigation="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:AdminSL="clr-namespace:Admin.SL"
x:Class="Admin.SL.MainWindow"
d:DataContext="{d:DesignInstance IsDesignTimeCreatable=True, Type=AdminSL:MainWindowDesign}"
mc:Ignorable="d">
Thanks in advance,
Jake