ChatterBox.Client.Presentation.Shared.ViewModels.ContactsViewModel.StopSound C# (CSharp) Method

StopSound() public method

public StopSound ( ) : Task
return Task
        public async Task StopSound()
        {
            if (RingtoneElement == null) return;

            await RingtoneElement.Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () =>
            {
                RingtoneElement.Stop();
                RingtoneElement.Source = null;
            });
        }