コード例 #1
0
        public async void bubble_DownloadImage(object sender, ChatMessage message)
        {
            EnableDownloadButtons(false);
            var    tempFolder = ApplicationData.Current.LocalFolder;
            string name       = await Utils.GetImageTempFileName();

            message.DownloadFile();
        }
コード例 #2
0
        public async void bubble_DownloadImage(object sender, ChatMessage message)
        {
            EnableDownloadButtons(false);
            string fileName = Utils.GetFileName();

            message.FileTransferFilepath = Path.Combine(ApplicationData.Current.LocalFolder.Path, fileName);
            message.Appdata = fileName;
            message.Listener.OnMsgStateChanged = MessageStateChanged;
            message.DownloadFile();
        }