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

Windows.Control.SytleManager.Theme Not recognized

9 Answers 174 Views
Window
This is a migrated thread and some comments may be shown as answers.
george
Top achievements
Rank 1
george asked on 20 Apr 2011, 02:22 AM
HI
I am using blend 4 to modify one of the xaml page and it strangely not recognize window7 theme and it works perfectly in vs2010]


here goes the stacktrace
ArgumentException 'Windows7' is not a valid value for the 'Telerik.windows.controls.stylemanager.Theme property

thanks

9 Answers, 1 is accepted

Sort by
0
Boyan
Telerik team
answered on 22 Apr 2011, 12:59 PM
Hello george,

I managed to reproduce the error at some point after writing the XAML of RadWindow, however after rebuilding the project it disappeared and I was not able to reproduce it anymore. So could you try to rebuild the project or restart Blend and see if this will help.

All the best,
Boyan
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
george
Top achievements
Rank 1
answered on 27 Apr 2011, 01:17 AM
hi
i ve tried rebuild the solution
the problem persist
May I ask do u use different build sequence?
thanks
0
Boyan
Telerik team
answered on 29 Apr 2011, 10:13 AM
Hi george,

I have not used any specific build sequence. Just created simple project in blend with just a RadWindow in it then when set the theme only to the window (not global) at first I got your error. Then just build the solution and the error disappeared.

We will try to investigate the problem further and try to fix it.

Kind regards,
Boyan
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
george
Top achievements
Rank 1
answered on 29 Apr 2011, 10:24 AM
thanks, is there any alternative solutions? its a pain to use vs to do the UI

i used to create a new project and link the existing xaml to it and it works

if i open the project solution file directly, it will show the same error no matter what i did.

regards

george
0
Pana
Telerik team
answered on 05 May 2011, 06:41 AM
Hello,

Currently we are not aware of other solutions but I do agree that styling controls in VS is a pain. Can you share some more information with us about the version of blend you are using and wether the problem appears after upgrade of the controls (like moving from 2010 Q3 to 2011 Q1 or 2011 Q1 to 2011 Q1 SP1)? If we could reproduce the issue we could try to find a solution as well as upgrading Blend may help.

All the best,
Pana
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
george
Top achievements
Rank 1
answered on 12 May 2011, 05:32 AM
thanks

its blend 4 ultimate and wpf plugin is 2010.3.1110.40
i had to go back to old way create a separate project only holds the xaml files
:)
0
george
Top achievements
Rank 1
answered on 16 May 2011, 08:27 AM
updated to 01 2011, it can build now. but still throwing exceptions when open particular xaml file.

we use prism and dynamically load resource from shared resource file and particular theme file



thanks
0
george
Top achievements
Rank 1
answered on 16 May 2011, 08:35 AM
updates again
<Window
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
    x:Class="ClientModule.Window1"
    x:Name="Window"
    Title="Window1"
    Width="640" Height="480">

    <Grid x:Name="LayoutRoot">
        <Grid.Resources>
            <Style x:Key="TestStyle">
                <Setter Property="telerik:StyleManager.Theme" Value="Windows7"/>
            </Style>
        </Grid.Resources>
       
        <telerik:ApplicationMenu HorizontalAlignment="Left" Height="100" Margin="98,109,0,0" VerticalAlignment="Top" Width="100"  Style="{StaticResource TestStyle}"/>
        </Grid>
</Winows>

its has the same issues while creating a simple window

thanks
0
Dani
Telerik team
answered on 19 May 2011, 12:07 PM
Hello George,

We tested a few scenarios on theme application and we could not reproduce the issue. I tested the latest post of yours and it updates properly in design time in Blend. I also tested UserControls with Windows7Theme from a PRISM solution with shared resources. Again, I did not get the mentioned exception.  I suppose that this might be an Expression Blend  version issue. The version of Blend that I used for testing is: Expression Blend 4 + SketchFlow, v. 4.0.20525.0.

Please, note that if Windows7Theme is set as a resource and is located outside the UserControl which uses this resource, the design-time will not display Windows7Theme, it will display the default Office Black theme. Still, it will not throw an exception, either.
The inline theme application with telerik:StyleManager.Theme="Windows7Theme" works just fine in the same scenario.

If you could set up a simple working project that reproduces the issue, it will be very helpful for us to test.


Best wishes,
Dani
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Window
Asked by
george
Top achievements
Rank 1
Answers by
Boyan
Telerik team
george
Top achievements
Rank 1
Pana
Telerik team
Dani
Telerik team
Share this question
or