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:
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:
By the way, there’s
No comments:
Post a Comment