I have a xbap application works in I.E. I have a button name close so what I want is when I clicked the close button it close current tab(which include my xbap app).I searched everywhere every site nothing found.
I tried
System.Windows.Forms.SendKeys.SendWait("^W");
but it didn't work.
Just add this in your code Environment.Exit(0);