locked
States in expression blend 4 RRS feed

  • Question

  • Hi all!

    I have  a problem.

    I don;t know how to create a page for a button i've already created.I've associated the GoToStateAction of that button with view 4.

    But i don't know how to create the content for view 4.I don't understand how to start.because in this moment when i select that button don't appear anything.I should select something.....or what?

    Thanks!!

     

    Friday, March 4, 2011 12:35 PM

Answers

  • To add content to a single state you could try to ...

     

    1) Go into template view.

    2) Select the state to which you want to add a specific content.

    3) Disable state recording.

    4) Group the contentprrsenter in a grid.

    5) Add the content of your choice to that grid, e.g. a textblock.

    6) Set the textblock visibility to collapsed.

    7) Enable state recording.

    8) Set visibility of contentpresenter to collapsed and visibility of textblock to visible.

    9) Hit F5 and run.

    • Marked as answer by AlinaFlorina Monday, March 7, 2011 1:14 PM
    Sunday, March 6, 2011 12:48 PM

All replies

  • Hi, I'm not a moderator or anything, but maybe i can help you out, what i do is to add the GoToStateAction to the button and then, selecting the 'GoToStateAction' Behaviour in the objects and time lines panel you go to properties panel and select the event and then the state, you can add a custom transition to the state, but you must realize that the final 'keyframes' will be the ones at the state, not the last keyframes or your transition, what I do is to copy-paste the last keyframes of your transition to the state. Regards.

    Friday, March 4, 2011 4:17 PM
  • ok.

    thanks

    But i don' know what should i do to add some content to that state?

    Saturday, March 5, 2011 5:37 PM
  • To add content to a single state you could try to ...

     

    1) Go into template view.

    2) Select the state to which you want to add a specific content.

    3) Disable state recording.

    4) Group the contentprrsenter in a grid.

    5) Add the content of your choice to that grid, e.g. a textblock.

    6) Set the textblock visibility to collapsed.

    7) Enable state recording.

    8) Set visibility of contentpresenter to collapsed and visibility of textblock to visible.

    9) Hit F5 and run.

    • Marked as answer by AlinaFlorina Monday, March 7, 2011 1:14 PM
    Sunday, March 6, 2011 12:48 PM