Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Using Controls, calling Launchers. IsolatedStorages and Local DataBase samples
1. Using Controls, calling Launchers.
IsolatedStorages and
Local DataBase samples
Elvin Asadov
AEMLoviji@GMail.com Software engineer
2. Content
• Controls and samples
• User Controls with sample
• Launchers AND Chooses (built-in applications)
• IsolatedStorage (System.IO.IsolatedStorage)
• SQL CE as a Local DataBase
Elvin Asadov
AEMLoviji@GMail.com Software engineer
3. Controls and samples
• What is a control, property, event
• Windows.IU.XAML.Controls namespace
• Define Styles as Resources
• <StackPanel.Resources>
<Style TargetType="TextBlock" x:Key="TextBlockStyle">
<Setter Property="Foreground" Value="Navy"/>
</Style>
</StackPanel.Resources>
<TextBlock Style="{StaticResource TextBlockStyle}"> ... /TextBlock>
• Nokia For Developers developer.nokia.com
Elvin Asadov
AEMLoviji@GMail.com Software engineer
4. User Controls with sample
• What is a user defined controls
• System.Windows.Controls.UserControl
• Provides the base class for defining a new control that
encapsulates related existing controls and provides its own
logic.
• How to use it
• Why use it
Elvin Asadov
AEMLoviji@GMail.com Software engineer
5. Launchers And Chooses
(built – in Apps)
Launchers and Choosers for Windows Phone
Launcher is an API that launches one of the built-in
applications, such as
BingMapsTask, EmailComposeTask, MarketplaceDetailTask,
MediaPlayerLauncher, SearchTask, SmsComposeTask …
Elvin Asadov
AEMLoviji@GMail.com Software engineer
6. IsolatedStorage
System.IO.IsolatedStorage
Using IsolatedStorage to save data
When should I save settings on Windows Phone
Add, Remove, Get from ApplicationSettings
IsolatedStorageFile fileStorage = IsolatedStorageFile.GetUserStoreForApplication();
StreamReader Reader = new StreamReader(new
IsolatedStorageFileStream(“t.txt", FileMode.Open, fileStorage));
string textFile = Reader.ReadToEnd();
textBox2.Text = textFile;
Reader.Close();
Elvin Asadov
AEMLoviji@GMail.com Software engineer