title: how to display message dailogue in PCL project class file
body: <p>I want to try display message dialogue in .cs file that is in pcl project.I want to call its method from my view.xaml.cs for displaying alert.</p>
  
  <p>i tried to use </p>
  
  <pre><code>   var dialog = new MessageDialog(e.Message, e.GetType().ToString());
          dialog.Commands.Add(new UICommand("Ok", null));
  
          await dialog.ShowDialogSafely();
  </code></pre>
  
  <p>but that require windows.UI.Popups namespace that is not available in class file of pcl project.I think its because it shared by all platform and that namespace is for windows only.then how can I achieve this.please help.
  thanks in advance</p>