开发者

How i can close ChildWindow in silverlight from page?

开发者 https://www.devze.com 2023-01-28 13:34 出处:网络
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

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

精彩评论

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

关注公众号