Upload
rashad-aliyev
View
1.601
Download
0
Embed Size (px)
DESCRIPTION
Citation preview
Using Controls, calling Launchers. IsolatedStorages and Local DataBase samples
Elvin AsadovSoftware engineer
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
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
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
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
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
IsolatedStorageFile fileStorage = IsolatedStorageFile.GetUserStoreForApplication();StreamReader Reader = new StreamReader(new
IsolatedStorageFileStream(“t.txt", FileMode.Open, fileStorage));string textFile = Reader.ReadToEnd();
textBox2.Text = textFile; Reader.Close();
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