Microsoft Expression Blend 3 - Show / Hide a popup
Posted
by imayam
on Stack Overflow
See other posts from Stack Overflow
or by imayam
Published on 2010-05-05T09:29:16Z
Indexed on
2010/05/05
10:38 UTC
Read the original article
Hit count: 915
Hi,
I'm using this for the very first time to do some quick prototyping (using sketchflow). I have a simple dialog window that I want to show when a button it pressed and then hide when a button (in the dialog, like an "OK" button) is pressed. If someone could just point me in the direction of a simple tutorial on how to do this I'd be happy, or even if you have a simple example you can post here that would be great (I've been trying to google this forever!).
I can tell you what I have tried (although obviously it doesn't work)
Created a user control, called it "MyDialog". That user control is a simple box which is the bit of gui I want to overlay when the user clicks a button.
In that user control I gave it two states "Show" and "Hide". The "Hide" state has all visability to the elements in this user control set to none and "Show" shows everything
Created a button in my main screen. That button I gave a it a behaviour "ActivateStateAction". In the properties of that behaviour I set the TargetScreen to be "MyDialog" and the TargetState to be "Show". (I also set the target screen to be MyprojectName.MyProjectNameScreens.MyDialog, that doesn't work either)
© Stack Overflow or respective owner