Quantcast
Channel: Silverlight Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 801

Commented Issue: ChildWindow - create non-modal [3668]

$
0
0
ChildWindow should mimic other dialog behavior

Show() shows a window
ShowDialog() shows modal view

ref: http://floatablewindow.codeplex.com
Comments: ** Comment from web user: JoeBrockhaus **

@JoshSommers

what you want to do CAN be done, just use inline lamdas/anonymous methods and become more familiar with async programming techniques...

something along the lines of ..
PopupHelper.ShowModal("title", "text", "buttons", "etc", () => { // handle onButtonPress });

so rather than getting a return value from the ShowModel method, you handle the action within the async lamda which is passed into the control and then fired upon button press. just move all your code you would have had AFTER the ShowModel inside the lamda. you can even reference objects that are technically outside the scope of the lamda because the compiler will keep that state around for when the lamda is executed. (for instance, a reference to this.Whatever would be unavailable during a breakpoint inside the lamda unless its referenced within the lamda at compile time)


Viewing all articles
Browse latest Browse all 801

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>