Windows.Control.SytleManager.Theme Not recognized

10 posts, 0 answers
  1. george
    george avatar
    21 posts
    Member since:
    Oct 2010

    Posted 19 Apr 2011 Link to this post

    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
  2. Boyan
    Admin
    Boyan avatar
    758 posts

    Posted 22 Apr 2011 Link to this post

    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
  3. UI for WPF is Visual Studio 2017 Ready
  4. george
    george avatar
    21 posts
    Member since:
    Oct 2010

    Posted 26 Apr 2011 Link to this post

    hi
    i ve tried rebuild the solution
    the problem persist
    May I ask do u use different build sequence?
    thanks
  5. Boyan
    Admin
    Boyan avatar
    758 posts

    Posted 29 Apr 2011 Link to this post

    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
  6. george
    george avatar
    21 posts
    Member since:
    Oct 2010

    Posted 29 Apr 2011 Link to this post

    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
  7. Pana
    Admin
    Pana avatar
    748 posts

    Posted 05 May 2011 Link to this post

    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
  8. george
    george avatar
    21 posts
    Member since:
    Oct 2010

    Posted 12 May 2011 Link to this post

    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
    :)
  9. george
    george avatar
    21 posts
    Member since:
    Oct 2010

    Posted 16 May 2011 Link to this post

    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
  10. george
    george avatar
    21 posts
    Member since:
    Oct 2010

    Posted 16 May 2011 Link to this post

    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
  11. Dani
    Admin
    Dani avatar
    848 posts

    Posted 19 May 2011 Link to this post

    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
Back to Top
UI for WPF is Visual Studio 2017 Ready