Using Controls, calling Launchers.
      IsolatedStorages and
    Local DataBase samples




                          Elvin Asadov
   AEMLoviji@GMail.com          Software 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 Asadov
AEMLoviji@GMail.com                                  Software 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 Asadov
AEMLoviji@GMail.com                                                 Software 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 Asadov
AEMLoviji@GMail.com                                   Software 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 Asadov
AEMLoviji@GMail.com                                    Software engineer
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
SQL CE as LocalDataBase
 •   SQL CE(Sql Compact Edition)

 •   WCF Services

 •   ORM( Object –relational mapping)

 •   LINQ(Language Intedated Query)

 •   SQLMetal Command Line Tool




                                        Elvin Asadov
AEMLoviji@GMail.com                           Software engineer
Thank YOU




                      Elvin Asadov
AEMLoviji@GMail.com         Software engineer

Using Controls, calling Launchers. IsolatedStorages and Local DataBase samples

  • 1.
    Using Controls, callingLaunchers. 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 withsample • 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
  • 7.
    SQL CE asLocalDataBase • SQL CE(Sql Compact Edition) • WCF Services • ORM( Object –relational mapping) • LINQ(Language Intedated Query) • SQLMetal Command Line Tool Elvin Asadov AEMLoviji@GMail.com Software engineer
  • 8.
    Thank YOU Elvin Asadov AEMLoviji@GMail.com Software engineer