I dont like it... its not very MVVM etc...

Maybe look at the Silverlight toolkit's transitioning content control
http://silverlight.codeplex.com/wikipage?title=Silverlight%20Toolkit%20Control%20Overview%20Pg4&referringTitle=Home

<http://silverlight.codeplex.com/wikipage?title=Silverlight%20Toolkit%20Control%20Overview%20Pg4&referringTitle=Home>or,
make your own content control derivitive that has a couple of visual states
(shown and not shown) and have it go to not shown state when the content is
null and the shown state when the content is not null, then just expose a
ViewModel from your parent ViewModel and bind that as the content - then it
will just appear when you have a viewmodel exposed and dissapear when you
dont :)

On Mon, May 10, 2010 at 10:41 AM, Stephen Price
<[email protected]>wrote:

> +1 ChildWindow. I'm using that for login window, change password window,
> message prompts etc. It's great and even has its own funky animated
> show/hide.
>
> On Mon, May 10, 2010 at 8:14 AM, Scott Barnes <[email protected]>wrote:
>
>> You can get this for free via ChildWindow.Show(); The overlay should
>> intercept input requests (ie shield them).
>>
>>
>>
>>
>>
>>
>>
>> *From:* [email protected] [mailto:
>> [email protected]] *On Behalf Of *Greg Keogh
>> *Sent:* Monday, May 10, 2010 10:07 AM
>> *To:* 'ozSilverlight'
>> *Subject:* Simulating modal dialog
>>
>>
>>
>> Can anyone recommend a Silverlight way of simulating the effect of a
>> Windows model dialog? Or perhaps it’s not wise to attempt this at all and
>> use some other UI technique.
>>
>>
>>
>> I have seen a few demos over the last year or so, including one by Stephan
>> Dekker last January on the SL weekend where put a semi-transparent canvas
>> over the main app window to create a dialog illusion. I think I’ve seen
>> Jordan Knight do the same thing at a demo last year. I heard discussion that
>> these techniques are not watertight because they’re not really modal and
>> don’t block keystrokes.
>>
>>
>>
>> I’m using the Liquid controls, and they seem to contain a Dialog class.
>> I’m going to take a couple of hours to play with the Liquid Dialog, but in
>> the meantime I thought I’d ask about this subject in general.
>>
>>
>>
>> Cheers,
>>
>> Greg
>>
>>
>>
>> Ps. I’ve put the context menu into the too-hard-basket for now. I’ll
>> return to it later when I have more hobby time, or SL4 arrives with one.
>>
>> _______________________________________________
>> ozsilverlight mailing list
>> [email protected]
>> http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight
>>
>>
>
> _______________________________________________
> ozsilverlight mailing list
> [email protected]
> http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight
>
>
_______________________________________________
ozsilverlight mailing list
[email protected]
http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight

Reply via email to