Roaming Options for User Settings: Listing 2

Saving the Settings into SkyDrive.

public static void SaveSettingsToCloud()
    LiveClient.GetAsync("/me/skydrive/my_documents", true);
private static void RetrieveFolderListing(object sender, LiveOperationCompletedEventArgs e)
    if (e.Error == null)
        var isUpload = (bool)e.UserState;
        if (isUpload)

private static void UploadSettingsToCloud(IDictionary<string, object> data)
    var id = (string) data["id"];
    var file = IsolatedStorageFile.GetUserStoreForApplication()
    LiveClient.UploadAsync(id, CloudSettingsFile, true, file, file);

private static void UploadCompleted(object sender, LiveOperationCompletedEventArgs e)
    var file = e.UserState as IsolatedStorageFileStream;
    SettingsSavedToCloud(LiveClient, EventArgs.Empty);

About the Author

Nick Randolph runs Built to Roam, a consulting company that specializes in training, mentoring and assisting other companies build mobile applications. With a heritage in rich client applications for both the desktop and a variety of mobile platforms, Nick currently presents, writes and educates on the Windows Phone platform.

comments powered by Disqus


  • Microsoft Extends Low-Code Push with Power Fx Programming Language

    "Using formulas that are already familiar to hundreds of millions of users, Power Fx allows a broad range of people to bring skills they already know to low code solutions."

  • Microsoft's Tools to Fight Solorigate Attack Are Now Open Source

    Microsoft open sourced homegrown tools it used to check its systems for code related to the recent massive breach of supply chains that the company has named Solorigate.

  • Microsoft's Lander on Blazor Desktop: 'I Don't See a Grand Unified App Model in the Future'

    For all of the talk of unifying the disparate ecosystem of Microsoft-centric developer tooling -- using one framework for apps of all types on all platforms -- Blazor Desktop is not the answer. There isn't one.

  • Firm Automates Legacy Web Forms-to-ASP.NET Core Conversions

    Migration technology uses the Angular web framework and Progress Kendo UI user interface elements to convert ASP.NET Web Forms client code to HTML and CSS, with application business logic converted automatically to ASP.NET Core.

Upcoming Events