8
Using Controls, calling Launchers. IsolatedStorages and Local DataBase samples Elvin Asadov Software engineer [email protected] om

Using Controls, calling Launchers. IsolatedStorages and Local DataBase samples

Embed Size (px)

DESCRIPTION

 

Citation preview

Page 1: Using Controls, calling Launchers. IsolatedStorages and Local DataBase samples

Using Controls, calling Launchers. IsolatedStorages and Local DataBase samples

Elvin AsadovSoftware engineer

[email protected]

Page 2: Using Controls, calling Launchers. IsolatedStorages and Local DataBase samples

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 AsadovSoftware engineer

[email protected]

Page 3: Using Controls, calling Launchers. IsolatedStorages and Local DataBase samples

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 AsadovSoftware engineer

[email protected]

Page 4: Using Controls, calling Launchers. IsolatedStorages and Local DataBase samples

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 AsadovSoftware engineer

[email protected]

Page 5: Using Controls, calling Launchers. IsolatedStorages and Local DataBase samples

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 AsadovSoftware engineer

[email protected]

Page 6: Using Controls, calling Launchers. IsolatedStorages and Local DataBase samples

IsolatedStorage

System.IO.IsolatedStorage

Using IsolatedStorage to save data

When should I save settings on Windows Phone

Add, Remove, Get from ApplicationSettings

Elvin AsadovSoftware engineer

[email protected]

IsolatedStorageFile fileStorage = IsolatedStorageFile.GetUserStoreForApplication();StreamReader Reader = new StreamReader(new

IsolatedStorageFileStream(“t.txt", FileMode.Open, fileStorage));string textFile = Reader.ReadToEnd();

textBox2.Text = textFile; Reader.Close();

Page 7: Using Controls, calling Launchers. IsolatedStorages and Local DataBase samples

SQL CE as LocalDataBase

• SQL CE(Sql Compact Edition)

• WCF Services

• ORM( Object –relational mapping)

• LINQ(Language Intedated Query)

• SQLMetal Command Line Tool

Elvin AsadovSoftware engineer

[email protected]

Page 8: Using Controls, calling Launchers. IsolatedStorages and Local DataBase samples

Thank YOU

Elvin AsadovSoftware engineer

[email protected]