开发者

How i can close ChildWindow in silverlight from page?

I have page.xaml and childwindow. How i can close the childwindow from page.xaml. Example by click on button in page.xaml. How i can get this childWindow from co开发者_JAVA技巧de?


Name your ChildWindow example x:Name="myChildWindow" under your page.xaml button click event in your code behind put this

myChildWindow.Close();


I believe there is a Close method on the ChildWindow object. By calling this method, the window will close.

See the MSDN documentation.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜