2015-03-25 10 views

Répondre

0

exceptions fonctionnent dans Silverlight comme dans tout code C#.

est ici un simple code exemple qui devrait vous aider.

try 
{ 
    //Whatever you want to try 
} 
catch(Exception e) 
{ 
    //Display error message 
    MessageBox.Show(e.Message); 

    //Close the application 
    Application.Current.MainWindow.Close(); 
}