Windows phone Encryption

The website discussions bit locker that can be setup on windows phone, however I have 3 windows phone and none of them have this capability. When I called in they stated the capabilities does not exist. however the store in deleware stated it is available.
Is there a pilot program for small companies to participate that have security engineers on the team, I would love to go with all microsoft products based on the easy integration; but this is a potential show stopper for full integration.
Thanks

The answer is yes and no, yes bitlocker can be enabled on a Windows Phone 8 device, no you can't just flip a switch and turn it on.
Bitlocker encryption can be enabled in 2 ways, either through the Exchange ActiveSync policy RequireDeviceEncryption or through a device management policy through a Mobile Device Management (MDM) solution. Microsoft's MDM is called Intune.

Similar Messages

  • AES Encryption for Windows Phone

    Hi,
    We are developing a windows phone app and the same app is also being developed in Android and IOS. All three platforms are using a JSON web service for data access. Parameters to be passed are encrypted using AES algorithm.
    The web service uses the Encryption and Decryption as shown in the following link : 
    https://msdn.microsoft.com/en-us/library/system.security.cryptography.aesmanaged(v=vs.110).aspx
    The same is Encryption is available in IOS and Android and working fine.
    I am unable to achieve the same encryption in Windows Phone as System.Security.Cryptography is not available in Windows Phone. I did browse around and found a few alternatives as shown below but i am not getting the desired result i.e. Encrypted data is
    not the same and hence Decryption is not giving the same result in server side.
    public static byte[] Encrypt(string plainText, string pw, string salt)
    IBuffer pwBuffer = CryptographicBuffer.ConvertStringToBinary(pw, BinaryStringEncoding.Utf8);
    IBuffer saltBuffer = CryptographicBuffer.ConvertStringToBinary(salt, BinaryStringEncoding.Utf16LE);
    IBuffer plainBuffer = CryptographicBuffer.ConvertStringToBinary(plainText, BinaryStringEncoding.Utf16LE);
    // Derive key material for password size 32 bytes for AES256 algorithm
    KeyDerivationAlgorithmProvider keyDerivationProvider = Windows.Security.Cryptography.Core.KeyDerivationAlgorithmProvider.OpenAlgorithm("PBKDF2_SHA1");
    // using salt and 1000 iterations
    KeyDerivationParameters pbkdf2Parms = KeyDerivationParameters.BuildForPbkdf2(saltBuffer, 1000);
    // create a key based on original key and derivation parmaters
    CryptographicKey keyOriginal = keyDerivationProvider.CreateKey(pwBuffer);
    IBuffer keyMaterial = CryptographicEngine.DeriveKeyMaterial(keyOriginal, pbkdf2Parms, 32);
    CryptographicKey derivedPwKey = keyDerivationProvider.CreateKey(pwBuffer);
    // derive buffer to be used for encryption salt from derived password key
    IBuffer saltMaterial = CryptographicEngine.DeriveKeyMaterial(derivedPwKey, pbkdf2Parms, 16);
    // display the buffers – because KeyDerivationProvider always gets cleared after each use, they are very similar unforunately
    string keyMaterialString = CryptographicBuffer.EncodeToBase64String(keyMaterial);
    string saltMaterialString = CryptographicBuffer.EncodeToBase64String(saltMaterial);
    SymmetricKeyAlgorithmProvider symProvider = SymmetricKeyAlgorithmProvider.OpenAlgorithm("AES_CBC_PKCS7");
    // create symmetric key from derived password key
    CryptographicKey symmKey = symProvider.CreateSymmetricKey(keyMaterial);
    // encrypt data buffer using symmetric key and derived salt material
    IBuffer resultBuffer = CryptographicEngine.Encrypt(symmKey, plainBuffer, saltMaterial);
    byte[] result;
    CryptographicBuffer.CopyToByteArray(resultBuffer, out result);
    return result;
    public static string Decrypt(byte[] encryptedData, string pw, string salt)
    IBuffer pwBuffer = CryptographicBuffer.ConvertStringToBinary(pw, BinaryStringEncoding.Utf8);
    IBuffer saltBuffer = CryptographicBuffer.ConvertStringToBinary(salt, BinaryStringEncoding.Utf16LE);
    IBuffer cipherBuffer = CryptographicBuffer.CreateFromByteArray(encryptedData);
    // Derive key material for password size 32 bytes for AES256 algorithm
    KeyDerivationAlgorithmProvider keyDerivationProvider = Windows.Security.Cryptography.Core.KeyDerivationAlgorithmProvider.OpenAlgorithm("PBKDF2_SHA1");
    // using salt and 1000 iterations
    KeyDerivationParameters pbkdf2Parms = KeyDerivationParameters.BuildForPbkdf2(saltBuffer, 1000);
    // create a key based on original key and derivation parmaters
    CryptographicKey keyOriginal = keyDerivationProvider.CreateKey(pwBuffer);
    IBuffer keyMaterial = CryptographicEngine.DeriveKeyMaterial(keyOriginal, pbkdf2Parms, 32);
    CryptographicKey derivedPwKey = keyDerivationProvider.CreateKey(pwBuffer);
    // derive buffer to be used for encryption salt from derived password key
    IBuffer saltMaterial = CryptographicEngine.DeriveKeyMaterial(derivedPwKey, pbkdf2Parms, 16);
    // display the keys – because KeyDerivationProvider always gets cleared after each use, they are very similar unforunately
    string keyMaterialString = CryptographicBuffer.EncodeToBase64String(keyMaterial);
    string saltMaterialString = CryptographicBuffer.EncodeToBase64String(saltMaterial);
    SymmetricKeyAlgorithmProvider symProvider = SymmetricKeyAlgorithmProvider.OpenAlgorithm("AES_CBC_PKCS7");
    // create symmetric key from derived password material
    CryptographicKey symmKey = symProvider.CreateSymmetricKey(keyMaterial);
    // encrypt data buffer using symmetric key and derived salt material
    IBuffer resultBuffer = CryptographicEngine.Decrypt(symmKey, cipherBuffer, saltMaterial);
    string result = CryptographicBuffer.ConvertBinaryToString(BinaryStringEncoding.Utf16LE, resultBuffer);
    return result;
    public static string AES_Encrypt(string input, string pass)
    SymmetricKeyAlgorithmProvider SAP = SymmetricKeyAlgorithmProvider.OpenAlgorithm(SymmetricAlgorithmNames.AesEcbPkcs7);
    CryptographicKey AES;
    HashAlgorithmProvider HAP = HashAlgorithmProvider.OpenAlgorithm(HashAlgorithmNames.Md5);
    CryptographicHash Hash_AES = HAP.CreateHash();
    string encrypted = "";
    try
    byte[] hash = new byte[32];
    Hash_AES.Append(CryptographicBuffer.CreateFromByteArray(System.Text.Encoding.UTF8.GetBytes(pass)));
    byte[] temp;
    CryptographicBuffer.CopyToByteArray(Hash_AES.GetValueAndReset(), out temp);
    Array.Copy(temp, 0, hash, 0, 16);
    Array.Copy(temp, 0, hash, 15, 16);
    AES = SAP.CreateSymmetricKey(CryptographicBuffer.CreateFromByteArray(hash));
    IBuffer Buffer = CryptographicBuffer.CreateFromByteArray(System.Text.Encoding.UTF8.GetBytes(input));
    encrypted = CryptographicBuffer.EncodeToBase64String(CryptographicEngine.Encrypt(AES, Buffer, null));
    return encrypted;
    catch (Exception ex)
    return null;
    public static string AES_Decrypt(string input, string pass)
    SymmetricKeyAlgorithmProvider SAP = SymmetricKeyAlgorithmProvider.OpenAlgorithm(SymmetricAlgorithmNames.AesEcbPkcs7);
    CryptographicKey AES;
    HashAlgorithmProvider HAP = HashAlgorithmProvider.OpenAlgorithm(HashAlgorithmNames.Md5);
    CryptographicHash Hash_AES = HAP.CreateHash();
    string decrypted = "";
    try
    byte[] hash = new byte[32];
    Hash_AES.Append(CryptographicBuffer.CreateFromByteArray(System.Text.Encoding.UTF8.GetBytes(pass)));
    byte[] temp;
    CryptographicBuffer.CopyToByteArray(Hash_AES.GetValueAndReset(), out temp);
    Array.Copy(temp, 0, hash, 0, 16);
    Array.Copy(temp, 0, hash, 15, 16);
    AES = SAP.CreateSymmetricKey(CryptographicBuffer.CreateFromByteArray(hash));
    IBuffer Buffer = CryptographicBuffer.DecodeFromBase64String(input);
    byte[] Decrypted;
    CryptographicBuffer.CopyToByteArray(CryptographicEngine.Decrypt(AES, Buffer, null), out Decrypted);
    decrypted = System.Text.Encoding.UTF8.GetString(Decrypted, 0, Decrypted.Length);
    return decrypted;
    catch (Exception ex)
    return null;
    Both methods shown above are not giving the same result.
    I would require the following scenario :
    Plain Text : "login@123"
    Key : "0123456789abcdef"
    IV : "fedcba9876543210"
    Hex : 356F65678C82C137BDBB2A2C8F824A68
    Encrypted Text : 5oegåÇ¡7Ωª*,èÇJh
    Request you to please suggest alternative to obtain the same AES Encryption using a Key and IV in Windows Phone.
    Thanks in advance.
    Regards,
    Vinay D

    Hi,
    The encryption and decryption in : http://dotnetspeak.com/2011/11/encrypting-and-decrypting-data-in-winrt-2 is
    not giving me the desired result.
    I would require the following scenario :
    Plain Text : "login@123"
    Key : "0123456789abcdef"
    IV : "fedcba9876543210"
    Encrypted Text : 5oegåÇ¡7Ωª*,èÇJh
    But what i am getting from the above link is : 
    I would require the following scenario :
    Plain Text : "login@123"
    Key : "0123456789abcdef"
    IV : "fedcba9876543210"
    Encrypted Text : NW9lZ4yCwTe9uyosj4JKaA==
    As u can see the encrypted string is not the same and hence i would get a different decrypt string on the server.
    I cannot change the server as it is in production and working with Android and IOS.
    Regards,
    Vinay D

  • Cryptography in C++/CX for Windows Phone 8.1

    I just have no idea what is wrong with my code in a Windows Phone 8.1 C++/CX WinRT component. It works but the decrypted buffer/string does not match the encrypted buffer/string. Input String^ in customerID
    is "12345678"
    IBuffer^ encrypted;
    String^ strMsg = ref new String(customerID->Data());
    unsigned int keyLength = 32;
    BinaryStringEncoding encoding = BinaryStringEncoding::Utf8;
    IBuffer^ buffMsg = CryptographicBuffer::ConvertStringToBinary(strMsg, encoding);
    SymmetricKeyAlgorithmProvider^ objAlg = SymmetricKeyAlgorithmProvider::OpenAlgorithm(SymmetricAlgorithmNames::AesCbc);
    if ((buffMsg->Length % objAlg->BlockLength) != 0)
    return LICENSE_RESULT::LICENSE_ERROR;
    IBuffer^ keyMaterial = CryptographicBuffer::GenerateRandom(keyLength);
    CryptographicKey^ key = objAlg->CreateSymmetricKey(keyMaterial);
    IBuffer ^ iv = nullptr;
    iv =CryptographicBuffer::GenerateRandom(objAlg->BlockLength);
    IBuffer^ buffEncrypt = CryptographicEngine::Encrypt(key, buffMsg, iv);
    IBuffer^ buffDecrypted;
    buffDecrypted = CryptographicEngine::Decrypt(key, buffEncrypt, iv);
    if (!CryptographicBuffer::Compare(buffDecrypted, buffEncrypt))
    return LICENSE_RESULT::LICENSE_ERROR;
    String^ strDecrypted = ref new String();
    strDecrypted = CryptographicBuffer::ConvertBinaryToString(encoding, buffDecrypted); return LICENSE_RESULT::LICENSE_OK;
    Thanks

    Thank you James, I will check
    That's weird indeed, the following test say buffers are not the same
    if (!CryptographicBuffer::Compare(buffDecrypted, buffEncrypt))
    and in strDecrypted
    I have nothing...something is weird with decryption I suspect

  • My Windows phone 8.1 can't seem to find any certificates, needed for VPN

    Hello,
    I set up an IKEv2 VPN at home so I could use it on my desktop as well as on my Windows phone.
    Now, I have two options which are supported by the VPN: 1) I can use username/password, but then I have to install the root certificate. 2) Use the client certificate.
    Now I've tried both but none seem to work. When I use username/password I get error 13801, which apparantly means that it can't find the root certificate. When I try to set up the VPN using the client certificate, I can't set it up because when I want to
    choose a certificate, it says there aren't any.
    I have installed both (several times by now) using the PFX and PF12 formats. I've tried regenerating them. None of this helps.
    My phone won't accept any crt or pem files so that's not gonna work either.
    I've tried restarting the phone, that didn't help either.
    Any suggestions?
    Thanks!

    Okay, I didn't get it to work with user/password authentication, but I did manage to use a client certificate.
    What I had to do was regenerate the certificate with Extended Key Usage: ClientAuth.
    Now, I'm facing a new issue because the server isn't accepting me for some reason, which apparantly has something to do with authentication or encryption. I haven't figured that out yet so I'll have a look at the server software instead.
    But if anyone knows what kind of thing Windows phone could be asking for that Windows desktop doesn't, that could be useful.

  • How to create an S/MIME message in Windows Phone 8?

    Hi!
    I am communicating with a backend that requires me to create on the Phone a message that follows the S/MIME standard. I have stored a public key in the IsolatedStorage on the phone, but I am not sure how to build the S/MIME message since there doesn't seem
    to exist any support for this in Phone 8 .NET framework.
    Does anyone have suggestions on how to accomplish this? There seems to be very little X509 support in Phone 8. I have talked to a fellow developer that did the Android app, and they used Bouncy Castle SMIME libraries (javamail) but these have not been ported
    to the C# version of Bouncy Castle.
    Any ideas? I have never built an S/MIME message before, but as far as I can tell it is a simple header-body design where the body can have a nested structure, and the body can also be encrypted.
    I ahve checked the
    http://social.msdn.microsoft.com/Forums/en-US/netfxnetcom/thread/74e4711e-1f66-43a7-9e3b-bc9cfbcd1b73/ post, and they use cms classes that doesn't exist in Phone 8... :(
    best regards
    /S
    Henrik

    If you want S/MIME support on Windows Phone, take a look at MimeKit (https://github.com/jstedfast/MimeKit) and MailKit (https://github.com/jstedfast/MailKit).
    MimeKit is a very fast and robust MIME parser implementation written in C# that uses BouncyCastle for the low-level cryptography and supports both S/MIME v3.2 and PGP.
    MailKit builds on top of MimeKit to add SMTP, POP3, and IMAP support.
    Both projects are completely open source and free for commercial use.

  • Windows phone security on wireless networks

    I am a post-doc at large medical center, and requested access to our secure wireless network due to the nature of my work. I was told by our IT support desk analysts that Windows
    Phone is not supported at our medical center (at all), because Windows phones are "too insecure to put on our network." Because of this, I either have to get rid of my brand new Windows Phone to get an android or I will never be allowed to have access
    to the secure Wi-Fi as necessary for my job. Any thoughts or suggestions? This seems to be a serious limitation of Windows Phone.

    Your support desk is outright lying to you. There is no issue with Windows Phone security on wireless networks, they just don't want to support your phone. It might be possible that Windows Phone doesn't support the particular kind of wireless encryption
    that your org uses, but I'm pretty sure that was all solved with Windows Phone 8.
    In fact, Windows Phone is more secure in some ways because unlike iOS and Android, you cannot override security certificate problems.

  • Olá. Bom dia! Me chamo Lucas, gostaria de saber se há um projeto de fazer o firefox para Windows Phone?

    Adoro o Firefox e o trabalho desenvolvido por vocês. Gostaria muito de ter esse browser de altíssima qualidade no meu Windows Phone.
    Parabéns pelo trabalho desenvolvido, e por interagir com os usuários. Estarei sempre colaborando para ajudar a melhorar sempre o Firefox.

    Infelizmente o projeto está parado por tempo indeterminado!
    Você pode acompanhar a historia aqui:
    *http://blog.pavlov.net/2010/03/22/stopping-development-for-windows-mobile/
    Alguns usuarios do WIndows Phone criaram algumas versões, mas não é nada oficial da Mozilla

  • Hp Aio Remote Beta for Windows Phone 8.1

    Having installed this app on a Lumia 520 to integrate with a 5520,  I find that documents in my phone's 'documents' folder are not apparent to the app, hence they cannot be printed. This applies equally to 'documents' folder both on the phone and sd card. Appears lots of users are having this issue, is there a fix please?

    I have an issue with Windows phone though, that's why I'm using Android. Have you checked this webpage yet? http://h10025.www1.hp.com/ewfrf/wc/document?cc=us&dlc=en&docname=c04387822&lc=en&jumpid=reg_r1002_us...
    Check on the FAQs on the App..

  • AIO Remote app cant find HP 7150 aio printer on my wifi network, on Windows Phone 8

     HI,
    Yesterday I install You App AIO Remote on Windows Phone 8. I have connected to wifi HP 7150 aio printer, but phone cant find this printer... I have Lumia 1520 and Lumia 920 smartphones both is connect to this same wifi network like printer, but You app on both Lumias cant find printer, again but no problem is to connect to printer WEB interface from this both Lumias, so wifi network is correct configured.
    I have two tablet more in this same wifi network, both with windows 8.1 x64 systems, on this, You Windows 8 modern App AIO Remote find this same printer without problem...
    So what is wrong ? printer config ? eprint is on, ipp is on, bonjur is on, ip is static.
    Please help Me becease I wait for this app and now i cant use them
     Thanx
    Peter

    Hi Peter,
    Welcome to the HP Support Forums.  I understand that you are trying to use the new HP AiO Remote app for Windows phones to print to your Photosmart 7150 printer.
    The Photosmart 7150 printer only supports USB connectivity, I have include the Photosmart 7150 Printer Specifications for reference.  To be able to use the HP AiO Remote app the printer needs to be connected to a wireless network. 
    If you accidentally typed the incorrect printer model, please let me know which make/model/product number of HP printer that you have. How Do I Find My Model Number or Product Number?
    Regards,
    Happytohelp01
    Please click on the Thumbs Up on the right to say “Thanks” for helping!
    Please click “Accept as Solution ” on the post that solves your issue to help others find the solution.
    I work on behalf of HP

  • HP officejet 6500 drivers for windows phone

    IHello,
    I have officejet 6500 with ethernet card. I use with wireless. I have Nokia 1020, Win8.1 mobil phone. I want print text on my phone. I installed HP Aio Remote Beta program. Aio found my printer but it said that this printer isn't supported. How can I print my text using my mobil phone on the officejet 6500? Is there any driver for mobil phone or any different program? or is that an upgrade for Aio (it must include my printer's driver ofcourse)
    Thanks...

    Hi,
    I afraid the printer is not compatible with Windows Phone.
    Only the models listed within the "What printers support printing features for the HP AiO Remote app for Windows 8 Phones?" below can be used for printing from Windows 8 Phone devices:
    http://h10025.www1.hp.com/ewfrf/wc/document?cc=us&​lc=en&docname=c04387822#N573
    Regards,
    Shlomi
    Say thanks by clicking the Kudos thumb up in the post.
    If my post resolve your problem please mark it as an Accepted Solution

  • Error while loading image from Windows Phone gallery into my Unity application

    Hi,
    I have developped a Windows Phone plugin for my Unity application which enable me to open the Windows Phone gallery in order to select an image and get its physic path.
    I've used this path to load the image in the application with a WWW object but I get this error
    "Error. Operation has failed with error 0x80070005: access is denied."
    The path is correct because I display it and I've ticked the ID_CAP_MEDIALIB_PHOTO in the WMAppManifest.xml (Capabilities tab).
    Here is my Unity C# test code to load the image with the path.
    IEnumerator loadImage()
    this.guiText.text = filePath;
    WWW www = new WWW(filePath);
    yield return www;
    if(www.error == null)
    GameObject texture = GameObject.Find("UNITY");
    if(texture != null)
    texture.guiTexture.texture = www.texture;
    Any help would be appreciated ! Thanks in advance !

    The error is correct. Your app doesn't have direct access to that path. It can directly load files only from its app data and install directories.
    To load from the libraries I it needs to use the StorageFile to get brokered access.
    The easiest way may be to copy from the library to local data then use WWW to load that. Otherwise you'll probably need to wrap the StorageFile can for use in unity. Unity has such a wrapper in the Unity Engine.WSA namespace that you can try

  • Windows Phone and Windows 8 Mail App not sending email from Reply/Forward

    I have recently upgraded from Windows 8 to 8.1. After a successful upgrade I configured the Windows 8 Mail app to also sync with Exchange (2010 in house server). On my Windows Phone (Nokia Lumia 800) I have the same account configured.
    This resulted in the problem that the Mail App and the phone do not want to send any emails that have been created by reply or forward.
    The phone gives the following error:
    "We weren't able to send this message, so we've put it in your Drafts folder. Before you try sending it again, you can check to see if the address is correct and that no attachments are too large."
    The Mail App give the following error:
    "There's a problem with sending messages from [email protected] at the moment. Check with your provider for more info."
    If I create a new email there is no problem.
    I have searched all over the internet for a solution to this problem, but could not find somebody with exactly the same problem.

    I have exactly the same problem, but unfortunately no solution either... I'll be watching this thread, or post a solution if I find one...

  • Windows phone 8.1 SDK want to install on WINDOWS 8.1 PRO 32bits...how can i ?

    windows phone 8.1 SDK want to install on WINDOWS 8.1 PRO 32bits...how can i ?
    is there any patch or any other version for windows 8.1 32 bits..to run win phone SDK..?

    Hi,
    According to the reference about Windows SDK, you should install it on a 64 bit system:
    http://msdn.microsoft.com/en-us/library/windowsphone/develop/ff626524(v=vs.105).aspx
    Regards
    Wade Liu
    TechNet Community Support

  • XAP Applications are not getting published in Windows Phone 8.1 Emulator

    I've SCCM + Intune integrated environment (trail version of Intune). Enrolled Windows phone 8.1 (emulator) device into the infrastructure. 
    I'm able to login to company portal and can see the devices associated with my user name in the company portal however I'm not able to publish any of the apps. It says your query didn't return any results :(
    I tried all the following types of apps (Windows apps in the windows store, Windows Phone app package and Windows phone app package in the windows phone store) but nothing getting published :( any clue ?
    Anoop C Nair (My Blog www.AnoopCNair.com)
    - Twitter @anoopmannur -
    FaceBook Forum For SCCM

    Yes, at last issue got resolved :)
    http://anoopcnair.com/2014/11/11/xap-applications-published-windows-phone-8-1-intune-integrated-sccm-2012-r2/
    Anoop C Nair (My Blog www.AnoopCNair.com)
    - Twitter @anoopmannur -
    FaceBook Forum For SCCM

  • Saving to Windows Phone Documents Folder

    Greetings,
    I tried to look through the forum but could not find anything on saving to the Windows Phone Documents folder. From what I researched online on the Windows Phone 8 it was not possible to do this as Microsoft had blocked the ability to do this due to security
    reasons. But on the 8.1 release they allowed this area to be accessed by third party apps. Is this correct?
    If so how do I go abouts saving to the documents folder. Basically my app is really simple I just input a couple of words into different text boxes and that should save to a text file. How do I go abouts doing this.
    I tried doing this
    StorageFolder local = KnownFolders.DocumentsLibrary;
    However, when I run it the program stops at this spot:
    #if DEBUG && !DISABLE_XAML_GENERATED_BREAK_ON_UNHANDLED_EXCEPTION
                UnhandledException += (sender, e) =>
                    if
    (global::System.Diagnostics.Debugger.IsAttached) global::System.Diagnostics.Debugger.Break();
    #endif
    What am I doing wrong. Thank you in advanced!!

    I apologize for that I looked at it quickly on my phone. Ok so I managed to get it to save to a file. The problem is now is I want to be able to append to that same file. Is that possible?
    Here is what I have so far:
    using SDKTemplate;
    using System;
    using System.Collections.Generic;
    using Windows.ApplicationModel.Activation;
    using Windows.Storage;
    using Windows.Storage.Pickers;
    using Windows.Storage.Provider;
    using Windows.UI.Xaml;
    using Windows.UI.Xaml.Controls;
    using Windows.UI.Xaml.Navigation;
    namespace FilePicker
        /// <summary>
        /// Implement IFileSavePickerContinuable interface, in order that Continuation Manager can automatically
        /// trigger the method to process returned file.
        /// </summary>
        public sealed partial class Scenario4 : Page, IFileSavePickerContinuable
            MainPage rootPage = MainPage.Current;
            public Scenario4()
                this.InitializeComponent();
                SaveFileButton.Click += new RoutedEventHandler(SaveFileButton_Click);
            private void SaveFileButton_Click(object sender, RoutedEventArgs e)
                // Clear previous returned file name, if it exists, between iterations of this scenario
                OutputTextBlock.Text = "";
                FileSavePicker savePicker = new FileSavePicker();
                savePicker.SuggestedStartLocation = PickerLocationId.DocumentsLibrary;
                // Dropdown of file types the user can save the file as
                savePicker.FileTypeChoices.Add("Plain Text", new List<string>() { ".csv" });
                // Default file name if the user does not type one in or select a file to replace
                savePicker.SuggestedFileName = "New Document";
                savePicker.PickSaveFileAndContinue();
            /// <summary>
            /// Handle the returned file from file picker
            /// This method is triggered by ContinuationManager based on ActivationKind
            /// </summary>
            /// <param name="args">File save picker continuation activation argment. It cantains the file user selected with file save picker </param>
            public async void ContinueFileSavePicker(FileSavePickerContinuationEventArgs args)
                string complete = "";
                string office = "";
                string revenue = "";
                string nps = "";
                string answer;
                answer = NotesTxt.Text;
                StorageFile file = args.File;
                if (file != null)
                    // Prevent updates to the remote version of the file until we finish making changes and call CompleteUpdatesAsync.
                    CachedFileManager.DeferUpdates(file);
                    // write to file
                    await FileIO.WriteTextAsync(file, answer);
                    // Let Windows know that we're finished changing the file so the other app can update the remote version of the file.
                    // Completing updates may require Windows to ask for user input.
                    FileUpdateStatus status = await CachedFileManager.CompleteUpdatesAsync(file);
                    if (status == FileUpdateStatus.Complete)
                        OutputTextBlock.Text = "File " + file.Name + " was saved.";
                    else
                        OutputTextBlock.Text = "File " + file.Name + " couldn't be saved.";
                else
                    OutputTextBlock.Text = "Operation cancelled.";
            private void SaveFileButton_Click_1(object sender, RoutedEventArgs e)

Maybe you are looking for