So for me is new and it looks great. In the past I have created user controls for this, but this ChildWindow has even animations…
To create it is as simple as adding a new item of this class to the project:
![Create a new Silverlight Child Window Create a new Silverlight Child Window](http://lh6.ggpht.com/-7KdV8lgGJVA/T0JqirBd4RI/AAAAAAAAAFc/s858dE9m-3I/image_thumb%25255B1%25255D.png?imgmax=800)
And then, tweak a bit the XAML to make it look the way you need and that’s all.
To use it you just have to create it and show it like this:
MessageWindow window = new MessageWindow("Info!", string.Format("This is a ChildWindow example."), true); window.Show();
MessageWindow window = new MessageWindow("Info!", string.Format("This is a ChildWindow example."), true); window.Show(); window.Closed += (sndr, args) => { if (window.DialogResult == true) { StratexWS.GetFBAUsersAsync(); LoadingWindow.Show(); } };
I have tweaked a bit the OOTB code. Mine looks like this:
![ChildWindow example ChildWindow example](http://lh4.ggpht.com/-L5yWAjP1X1E/T0JqkiqvAMI/AAAAAAAAAFs/Vccm9THdOdM/image_thumb%25255B2%25255D.png?imgmax=800)
By the way, there’s
No comments:
Post a Comment