New Fresh deep-dives on cloud, AI, mobile & web now publish on blog.msdevbuild.com Read the latest → Install the app
Xamarin

IsolatedStorageSettings in Windows Phone

By   Tuesday, July 24, 2012 comments
reads
React:

IsolatedStorageSettings



Save Data Into Setting:
/// <summary>
/// Save Value into Setting File
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void button1_Click(object sender, RoutedEventArgs e)
{
IsolatedStorageSettings.ApplicationSettings.Add("Email", txtname.Text);
}

Retrieve Data from Setting:

/// <summary>
/// Retrieve Value from Setting file
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>

private void button2_Click(object sender, RoutedEventArgs e)
{
if (IsolatedStorageSettings.ApplicationSettings.Contains("Email") == true)
{
txtemail.Text = IsolatedStorageSettings.ApplicationSettings["Email"].ToString();
}
else
{
MessageBox.Show("Value not found");
}
}

Save Object into Setting:

/// <summary>
/// Class have two property
/// </summary>

public class Student
{
public string Name { get; set; }
public string email { get; set; }
}

/// <summary>
/// Store object into Setting
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>

private void button1_Click_1(object sender, RoutedEventArgs e)
{
Student os = new Student { Name = txtname.Text, email = txtemail.Text };

IsolatedStorageSettings.ApplicationSettings.Add("Stud", os);
}
Retieve Object from setting

/// <summary>
/// Retrieve Object from Setting
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>

private void button2_Click_1(object sender, RoutedEventArgs e)
{
Student os;
IsolatedStorageSettings.ApplicationSettings.TryGetValue<Student>("Stud", out os);
txtname.Text = os.Name;
txtemail.Text = os.email;
}

Data Binding

Student os;
IsolatedStorageSettings.ApplicationSettings.TryGetValue<Student>("Stud", out os);
txtname.Text = os.Name;
txtemail.Text = os.email;
this.DataContext = os;

<TextBlock Height="39" HorizontalAlignment="Left" Margin="90,439,0,0" Name="txtbname" Text="{Binding Name}" VerticalAlignment="Top" Width="251" />

<TextBlock Height="36" HorizontalAlignment="Left" Margin="90,509,0,0" Name="txtbemail" Text="{Binding email}" VerticalAlignment="Top" Width="263" />

SJ
Suthahar Jegatheesan

Cloud, AI & Mobile Solutions Architect · 18+ years across Azure, Google Cloud and Firebase, C#, Python, .NET MAUI and Flutter. Author of the Xamarin Q&A Book.

More in this series

No comments:

sponsored

What Colleagues Say

“Suthahar is one of the most thorough and knowledgeable cloud architects I’ve worked with. His depth on Azure and ability to make complex mobile solutions work cross-platform is remarkable. He always delivers beyond expectations.”

AT Arun T. Senior Engineering Manager · Direct Manager

“I’ve followed Suthahar’s MSDEVBUILD blog for years — practical, deep, always current. Working alongside him confirmed what I suspected: he’s as sharp in person as on paper, and a genuinely generous mentor and architect.”

RK Rajesh K. Lead Developer · Mindtree

Certifications & Recognition

AZ-300 · Azure Architect Technologies AZ-301 · Azure Architect Design AZ-104 · Azure Administrator Associate AI-100 · Designing Azure AI Solutions DP-900 · Azure Data Fundamentals MCPD · Windows Phone Certified SAFe® 4 Scrum Master

Technical Expertise

☁ Cloud Platforms Microsoft Azure — Expert · 18 yrs App Services · AKS · Functions · Cosmos DB · APIM · Entra ID AWS & Google Cloud — Advanced
πŸ€– AI & Automation Azure OpenAI / GenAI — Advanced · 5 yrs RAG Pipelines · Bot Framework · Cognitive Services · Vision & Speech AI · ML.NET
πŸ“± Mobile Architecture .NET MAUI & Xamarin — Expert · 12 yrs Flutter · Native iOS/Android · Offline-First · Secure Storage & Auth
πŸ”’ Identity & Security Microsoft Entra ID — Expert OAuth 2.0 · OIDC · Zero Trust · Conditional Access · RBAC · Key Vault

Speaking & Community

Microsoft User Group Malaysia Recurring speaker on Azure architecture, AI integration and .NET mobile development across Malaysia and APAC.
Global Azure Bootcamp — Chennai Presented “AI into Xamarin Mobile Apps” at GAB Chennai, part of the worldwide Global Azure community event.
AI & Azure OpenAI Community Events Workshops and live demos on RAG pipelines, AI agents and intelligent workflow automation since 2023.
Mobile & Cloud Workshops — Coimbatore Multi-day deep-dive sessions at GRG Computer Technology, KG Microsoft Innovation Center and RVS College of Arts and Science.
500+Blog Articles
50+Conference Talks
10K+Monthly Readers
30Public Repositories
3Continents Delivered
New home

MSDEVBUILD now publishes on blog.msdevbuild.com

Every new article lands there first — cloud and Azure, AI and GitHub Copilot, .NET MAUI and Flutter, web and Firebase. It installs as an app, opens like a native one and keeps working offline.

MSDEVBUILD Assistant Ask about Suthahar, Azure, AI or mentorship
Hi! I’m a simple FAQ bot for MSDEVBUILD. Tap a question below or type your own.