private void ShowMessageForMissingAccess()
{
CoreApplication.MainView.CoreWindow.Dispatcher.RunAsync(CoreDispatcherPriority.Normal, async () =>
{
var msgDialog = new MessageDialog("Chatterbox cannot run without access to webcam and microhpone!");
msgDialog.Commands.Add(new UICommand("OK", (cmd) => Current.Exit()) { Id = 0 });
msgDialog.DefaultCommandIndex = 0;
msgDialog.CancelCommandIndex = 0;
await msgDialog.ShowAsync();
});
}