silverlight 隐藏ChildWindow 右上角的关闭按钮

 获取或设置一个值,该值指示 ChildWindow 是否具有关闭按钮。

 this.HasCloseButton = false;

 

或者另外一种方式,在调用窗口注册回调,当子窗口关闭时,回调一个函数,继续弹出

 

    public MainPage()          

   {           

             InitializeComponent();            

             childWindowDemo.OkClicked +=new EventHandler(childWindowDemo_OkClicked);      

   }

     privatevoid childWindowDemo_OkClicked(object sender, EventArgs e)     

    {           

              childWindowDemo.Show();  

     }

      privatevoid btPopup_Click(object sender, RoutedEventArgs e)       

     {           

               childWindowDemo.Show();       

      }

 

posted @ 2013-03-25 09:05  旦旦哥  阅读(452)  评论(0编辑  收藏  举报