Bug with state editing: Switching of states doesn't reflect in design view RRS feed

  • Question

  • Hi guys,

    In our project switching of control states doesn't reflect in design view.

    Here is the link on the solution. You can reproduce bug by trying to edit button default style in globalstyles.xaml resource dictionary.

    We are using Blend 4 RC, with .NET 4 and Silverlight 4 RTMs

    Best regards,

    Alexey Zakharov.

    blog: http://weblogs.asp.net/AlexeyZakharov/

    Friday, April 16, 2010 6:05 AM

All replies

  • I forwarded your issue on to someone to have a look, they should reply here.
    Friday, April 16, 2010 1:26 PM
  • Any progress with this issue? Do you faced same problems when run our sample?
    Monday, April 26, 2010 3:39 PM
  • I've reproduced this bug from scratch:

    1. Create new Silverlight App.

    2. Add default button style in App.xaml

    Switching of button states in blend has no effect. Only normal state is visible.

    Here is the source of sample project: http://weblogs.asp.net/blogs/alexeyzakharov/SilverlightApplication13.zip

    Any ideas???!! This terrible bug prevent us to finish release of client's project =(

    Monday, April 26, 2010 6:49 PM
  • Hi Alexey,

    When you say states are not visible, do you mean that the states pane does not list any states?

    If so, you need to edit the template to view the states. Here is how you do it:

    a) Open the resource pane and click on the style to edit it as you are doing before
    b) Right click on the style node in the object tree and "Edit Template" -> "Edit Current"

    You should now be able to see the various states.

    If this is not the problem, can you please describe it a bit more in detail?


    This posting is provided "AS IS" with no warranties, and confers no rights.
    Tuesday, April 27, 2010 8:40 PM
  • It seems that i faced following bug, which you described in known issues of Expresssion Blend 4 RC:

    In a Silverlight 4 project, animations are not applied to a template
    while editing out of context.

    If you edit a Style via the Resources panel then you are editing it
    out of context (contrasted with editing the Style in the context of an
    object to which the Style is applied). While out of context in a
    Silverlight 4 project, if you navigate into the Style’s template and
    select visual states then those states’ animations will not be applied
    to the objects in the template. The artboard will therefore not update
    to reflect the animations. The same issue occurs with animations in a

    Wednesday, April 28, 2010 3:31 AM