コード例 #1
0
        private void mmsControl_MMSMessagePrepared(object sender, MessagePreparedEventArgs e)
        {
            var message = e.Message as MmsMessage;

            if (message != null && message.Attachments.Count() == 1)
            {
                var fileTask = StorageFile.GetFileFromApplicationUriAsync(new Uri("ms-appx:///Assets/SmallLogo.png")).AsTask();
                fileTask.Wait();
                message.AddAttachment(fileTask.Result);
            }
        }
コード例 #2
0
		private void mmsControl_MMSMessagePrepared(object sender, MessagePreparedEventArgs e)
		{			
			var message = e.Message as MmsMessage;

			if (message != null && message.Attachments.Count() == 1)
			{					
				var fileTask = StorageFile.GetFileFromApplicationUriAsync(new Uri("ms-appx:///Assets/SmallLogo.png")).AsTask();
				fileTask.Wait();
				message.AddAttachment(fileTask.Result);
			}
		}