18
WINDOWS PHONE 7.5 “MANGO” ADVANCED Laurent Bugnion Director of UX Integration IdentityMine http ://blog.galasoft.ch

WINDOWS PHONE 7.5 “MANGO” ADVANCED Laurent Bugnion Director of UX Integration IdentityMine

Embed Size (px)

Citation preview

Page 1: WINDOWS PHONE 7.5 “MANGO” ADVANCED Laurent Bugnion Director of UX Integration IdentityMine

WINDOWS PHONE 75 ldquoMANGOrdquo ADVANCED

Laurent BugnionDirector of UX Integration

IdentityMinehttpbloggalasoftch

copy 2011 IdentityMine Inc All Rights Reserved 2Page

IDENTITYMINE

httpwwwidentityminecom

WP7

copy 2011 IdentityMine Inc All Rights Reserved 3Page

TODAY WE WILL

bull Talk about MVVMbull Walk through an MVVM appbull Add persistence with a databasebull Download large files ldquoin the backgroundrdquobull Add and modify Live tiles

copy 2011 IdentityMine Inc All Rights Reserved 4Page

THE MVC PATTERN

Model View

Controller

copy 2011 IdentityMine Inc All Rights Reserved 5Page

THE PASSIVE VIEW PATTERN

Model View

Controller

copy 2011 IdentityMine Inc All Rights Reserved 6Page

THE PRESENTATION MODEL PATTERN

Model View

Presentation Model

(ViewModel)

DataBinding

MVVM

copy 2011 IdentityMine Inc All Rights Reserved 7Page

MORE INFO ABOUT MVVM

bull httpwwwgalasoftchmvvmvideo1ldquoUnderstanding the MVVM patternrdquo

bull httpwwwgalasoftchmvvmvideo2ldquoDeep Dive MVVMrdquo

bull httpbloggalasoftch

copy 2011 IdentityMine Inc All Rights Reserved 8Page

MVVM LIGHT TOOLKIT

bull httpwwwgalasoftchmvvmbull httpmvvmlightcodeplexcombull Keep it smallbull Keep it simple

DEMO

copy 2011 IdentityMine Inc All Rights Reserved 9Page

MVVM Walkthrough

copy 2011 IdentityMine Inc All Rights Reserved 10Page

SQL CE FOR WP75

bull SQL CE (SDF) file in isolated storagebull No additional DLL neededbull LINQ to SQL as ORMbull Code first approach preferredbull Embedding SDF file also possible

copy 2011 IdentityMine Inc All Rights Reserved 11Page

EMBEDDING SDF

bull Create SDF file on PCbull Create entity classes with SQLMETALbull Embed SDF in XAP filendash Read-only access granted

bull For read-write access move the DB to isolated storage

bull httpmsdnmicrosoftcomen-uslibraryhh286411(v=VS92)aspx

DEMO

copy 2011 IdentityMine Inc All Rights Reserved 12Page

Adding DB persistence

copy 2011 IdentityMine Inc All Rights Reserved 13Page

BACKGROUND TRANSFER

bull Optimized multitaskingndash Alarms Remindersndash Periodic tasksndash Background audiondash Background transfer

bull Download location must be withinsharedtransfers (in isolated storage)ndash Can be moved after download completes

copy 2011 IdentityMine Inc All Rights Reserved 14Page

BACKGROUND TRANSFER

bull Some restrictionsndash GETPOST onlyndash Maximum upload 5MBndash Maximum download over cellular 20MBndash Maximum download on battery 100MBndash Maximum 5 queued requests per appndash Maximum 2 concurrent transfers per devicendash Maximum 500 queued requests per device

DEMO

copy 2011 IdentityMine Inc All Rights Reserved 15Page

Background Transfer

DEMO

copy 2011 IdentityMine Inc All Rights Reserved 16Page

Adding and updatinga Live Tile

FURTHER INFORMATIONhttpbloggalasoftchhttpwwwgalasoftchmvvmhttpwwwidentityminecomLBugnion

THANKS

  • Windows phone 75 ldquoMangordquo Advanced
  • IdentityMine
  • Today we will
  • The MVC pattern
  • The Passive View pattern
  • Slide 6
  • More info about MVVM
  • MVVM Light Toolkit
  • demo
  • SQL CE for WP75
  • Embedding SDF
  • demo (2)
  • Background Transfer
  • Background Transfer (2)
  • demo (3)
  • demo (4)
  • Further information
  • Thanks
Page 2: WINDOWS PHONE 7.5 “MANGO” ADVANCED Laurent Bugnion Director of UX Integration IdentityMine

copy 2011 IdentityMine Inc All Rights Reserved 2Page

IDENTITYMINE

httpwwwidentityminecom

WP7

copy 2011 IdentityMine Inc All Rights Reserved 3Page

TODAY WE WILL

bull Talk about MVVMbull Walk through an MVVM appbull Add persistence with a databasebull Download large files ldquoin the backgroundrdquobull Add and modify Live tiles

copy 2011 IdentityMine Inc All Rights Reserved 4Page

THE MVC PATTERN

Model View

Controller

copy 2011 IdentityMine Inc All Rights Reserved 5Page

THE PASSIVE VIEW PATTERN

Model View

Controller

copy 2011 IdentityMine Inc All Rights Reserved 6Page

THE PRESENTATION MODEL PATTERN

Model View

Presentation Model

(ViewModel)

DataBinding

MVVM

copy 2011 IdentityMine Inc All Rights Reserved 7Page

MORE INFO ABOUT MVVM

bull httpwwwgalasoftchmvvmvideo1ldquoUnderstanding the MVVM patternrdquo

bull httpwwwgalasoftchmvvmvideo2ldquoDeep Dive MVVMrdquo

bull httpbloggalasoftch

copy 2011 IdentityMine Inc All Rights Reserved 8Page

MVVM LIGHT TOOLKIT

bull httpwwwgalasoftchmvvmbull httpmvvmlightcodeplexcombull Keep it smallbull Keep it simple

DEMO

copy 2011 IdentityMine Inc All Rights Reserved 9Page

MVVM Walkthrough

copy 2011 IdentityMine Inc All Rights Reserved 10Page

SQL CE FOR WP75

bull SQL CE (SDF) file in isolated storagebull No additional DLL neededbull LINQ to SQL as ORMbull Code first approach preferredbull Embedding SDF file also possible

copy 2011 IdentityMine Inc All Rights Reserved 11Page

EMBEDDING SDF

bull Create SDF file on PCbull Create entity classes with SQLMETALbull Embed SDF in XAP filendash Read-only access granted

bull For read-write access move the DB to isolated storage

bull httpmsdnmicrosoftcomen-uslibraryhh286411(v=VS92)aspx

DEMO

copy 2011 IdentityMine Inc All Rights Reserved 12Page

Adding DB persistence

copy 2011 IdentityMine Inc All Rights Reserved 13Page

BACKGROUND TRANSFER

bull Optimized multitaskingndash Alarms Remindersndash Periodic tasksndash Background audiondash Background transfer

bull Download location must be withinsharedtransfers (in isolated storage)ndash Can be moved after download completes

copy 2011 IdentityMine Inc All Rights Reserved 14Page

BACKGROUND TRANSFER

bull Some restrictionsndash GETPOST onlyndash Maximum upload 5MBndash Maximum download over cellular 20MBndash Maximum download on battery 100MBndash Maximum 5 queued requests per appndash Maximum 2 concurrent transfers per devicendash Maximum 500 queued requests per device

DEMO

copy 2011 IdentityMine Inc All Rights Reserved 15Page

Background Transfer

DEMO

copy 2011 IdentityMine Inc All Rights Reserved 16Page

Adding and updatinga Live Tile

FURTHER INFORMATIONhttpbloggalasoftchhttpwwwgalasoftchmvvmhttpwwwidentityminecomLBugnion

THANKS

  • Windows phone 75 ldquoMangordquo Advanced
  • IdentityMine
  • Today we will
  • The MVC pattern
  • The Passive View pattern
  • Slide 6
  • More info about MVVM
  • MVVM Light Toolkit
  • demo
  • SQL CE for WP75
  • Embedding SDF
  • demo (2)
  • Background Transfer
  • Background Transfer (2)
  • demo (3)
  • demo (4)
  • Further information
  • Thanks
Page 3: WINDOWS PHONE 7.5 “MANGO” ADVANCED Laurent Bugnion Director of UX Integration IdentityMine

copy 2011 IdentityMine Inc All Rights Reserved 3Page

TODAY WE WILL

bull Talk about MVVMbull Walk through an MVVM appbull Add persistence with a databasebull Download large files ldquoin the backgroundrdquobull Add and modify Live tiles

copy 2011 IdentityMine Inc All Rights Reserved 4Page

THE MVC PATTERN

Model View

Controller

copy 2011 IdentityMine Inc All Rights Reserved 5Page

THE PASSIVE VIEW PATTERN

Model View

Controller

copy 2011 IdentityMine Inc All Rights Reserved 6Page

THE PRESENTATION MODEL PATTERN

Model View

Presentation Model

(ViewModel)

DataBinding

MVVM

copy 2011 IdentityMine Inc All Rights Reserved 7Page

MORE INFO ABOUT MVVM

bull httpwwwgalasoftchmvvmvideo1ldquoUnderstanding the MVVM patternrdquo

bull httpwwwgalasoftchmvvmvideo2ldquoDeep Dive MVVMrdquo

bull httpbloggalasoftch

copy 2011 IdentityMine Inc All Rights Reserved 8Page

MVVM LIGHT TOOLKIT

bull httpwwwgalasoftchmvvmbull httpmvvmlightcodeplexcombull Keep it smallbull Keep it simple

DEMO

copy 2011 IdentityMine Inc All Rights Reserved 9Page

MVVM Walkthrough

copy 2011 IdentityMine Inc All Rights Reserved 10Page

SQL CE FOR WP75

bull SQL CE (SDF) file in isolated storagebull No additional DLL neededbull LINQ to SQL as ORMbull Code first approach preferredbull Embedding SDF file also possible

copy 2011 IdentityMine Inc All Rights Reserved 11Page

EMBEDDING SDF

bull Create SDF file on PCbull Create entity classes with SQLMETALbull Embed SDF in XAP filendash Read-only access granted

bull For read-write access move the DB to isolated storage

bull httpmsdnmicrosoftcomen-uslibraryhh286411(v=VS92)aspx

DEMO

copy 2011 IdentityMine Inc All Rights Reserved 12Page

Adding DB persistence

copy 2011 IdentityMine Inc All Rights Reserved 13Page

BACKGROUND TRANSFER

bull Optimized multitaskingndash Alarms Remindersndash Periodic tasksndash Background audiondash Background transfer

bull Download location must be withinsharedtransfers (in isolated storage)ndash Can be moved after download completes

copy 2011 IdentityMine Inc All Rights Reserved 14Page

BACKGROUND TRANSFER

bull Some restrictionsndash GETPOST onlyndash Maximum upload 5MBndash Maximum download over cellular 20MBndash Maximum download on battery 100MBndash Maximum 5 queued requests per appndash Maximum 2 concurrent transfers per devicendash Maximum 500 queued requests per device

DEMO

copy 2011 IdentityMine Inc All Rights Reserved 15Page

Background Transfer

DEMO

copy 2011 IdentityMine Inc All Rights Reserved 16Page

Adding and updatinga Live Tile

FURTHER INFORMATIONhttpbloggalasoftchhttpwwwgalasoftchmvvmhttpwwwidentityminecomLBugnion

THANKS

  • Windows phone 75 ldquoMangordquo Advanced
  • IdentityMine
  • Today we will
  • The MVC pattern
  • The Passive View pattern
  • Slide 6
  • More info about MVVM
  • MVVM Light Toolkit
  • demo
  • SQL CE for WP75
  • Embedding SDF
  • demo (2)
  • Background Transfer
  • Background Transfer (2)
  • demo (3)
  • demo (4)
  • Further information
  • Thanks
Page 4: WINDOWS PHONE 7.5 “MANGO” ADVANCED Laurent Bugnion Director of UX Integration IdentityMine

copy 2011 IdentityMine Inc All Rights Reserved 4Page

THE MVC PATTERN

Model View

Controller

copy 2011 IdentityMine Inc All Rights Reserved 5Page

THE PASSIVE VIEW PATTERN

Model View

Controller

copy 2011 IdentityMine Inc All Rights Reserved 6Page

THE PRESENTATION MODEL PATTERN

Model View

Presentation Model

(ViewModel)

DataBinding

MVVM

copy 2011 IdentityMine Inc All Rights Reserved 7Page

MORE INFO ABOUT MVVM

bull httpwwwgalasoftchmvvmvideo1ldquoUnderstanding the MVVM patternrdquo

bull httpwwwgalasoftchmvvmvideo2ldquoDeep Dive MVVMrdquo

bull httpbloggalasoftch

copy 2011 IdentityMine Inc All Rights Reserved 8Page

MVVM LIGHT TOOLKIT

bull httpwwwgalasoftchmvvmbull httpmvvmlightcodeplexcombull Keep it smallbull Keep it simple

DEMO

copy 2011 IdentityMine Inc All Rights Reserved 9Page

MVVM Walkthrough

copy 2011 IdentityMine Inc All Rights Reserved 10Page

SQL CE FOR WP75

bull SQL CE (SDF) file in isolated storagebull No additional DLL neededbull LINQ to SQL as ORMbull Code first approach preferredbull Embedding SDF file also possible

copy 2011 IdentityMine Inc All Rights Reserved 11Page

EMBEDDING SDF

bull Create SDF file on PCbull Create entity classes with SQLMETALbull Embed SDF in XAP filendash Read-only access granted

bull For read-write access move the DB to isolated storage

bull httpmsdnmicrosoftcomen-uslibraryhh286411(v=VS92)aspx

DEMO

copy 2011 IdentityMine Inc All Rights Reserved 12Page

Adding DB persistence

copy 2011 IdentityMine Inc All Rights Reserved 13Page

BACKGROUND TRANSFER

bull Optimized multitaskingndash Alarms Remindersndash Periodic tasksndash Background audiondash Background transfer

bull Download location must be withinsharedtransfers (in isolated storage)ndash Can be moved after download completes

copy 2011 IdentityMine Inc All Rights Reserved 14Page

BACKGROUND TRANSFER

bull Some restrictionsndash GETPOST onlyndash Maximum upload 5MBndash Maximum download over cellular 20MBndash Maximum download on battery 100MBndash Maximum 5 queued requests per appndash Maximum 2 concurrent transfers per devicendash Maximum 500 queued requests per device

DEMO

copy 2011 IdentityMine Inc All Rights Reserved 15Page

Background Transfer

DEMO

copy 2011 IdentityMine Inc All Rights Reserved 16Page

Adding and updatinga Live Tile

FURTHER INFORMATIONhttpbloggalasoftchhttpwwwgalasoftchmvvmhttpwwwidentityminecomLBugnion

THANKS

  • Windows phone 75 ldquoMangordquo Advanced
  • IdentityMine
  • Today we will
  • The MVC pattern
  • The Passive View pattern
  • Slide 6
  • More info about MVVM
  • MVVM Light Toolkit
  • demo
  • SQL CE for WP75
  • Embedding SDF
  • demo (2)
  • Background Transfer
  • Background Transfer (2)
  • demo (3)
  • demo (4)
  • Further information
  • Thanks
Page 5: WINDOWS PHONE 7.5 “MANGO” ADVANCED Laurent Bugnion Director of UX Integration IdentityMine

copy 2011 IdentityMine Inc All Rights Reserved 5Page

THE PASSIVE VIEW PATTERN

Model View

Controller

copy 2011 IdentityMine Inc All Rights Reserved 6Page

THE PRESENTATION MODEL PATTERN

Model View

Presentation Model

(ViewModel)

DataBinding

MVVM

copy 2011 IdentityMine Inc All Rights Reserved 7Page

MORE INFO ABOUT MVVM

bull httpwwwgalasoftchmvvmvideo1ldquoUnderstanding the MVVM patternrdquo

bull httpwwwgalasoftchmvvmvideo2ldquoDeep Dive MVVMrdquo

bull httpbloggalasoftch

copy 2011 IdentityMine Inc All Rights Reserved 8Page

MVVM LIGHT TOOLKIT

bull httpwwwgalasoftchmvvmbull httpmvvmlightcodeplexcombull Keep it smallbull Keep it simple

DEMO

copy 2011 IdentityMine Inc All Rights Reserved 9Page

MVVM Walkthrough

copy 2011 IdentityMine Inc All Rights Reserved 10Page

SQL CE FOR WP75

bull SQL CE (SDF) file in isolated storagebull No additional DLL neededbull LINQ to SQL as ORMbull Code first approach preferredbull Embedding SDF file also possible

copy 2011 IdentityMine Inc All Rights Reserved 11Page

EMBEDDING SDF

bull Create SDF file on PCbull Create entity classes with SQLMETALbull Embed SDF in XAP filendash Read-only access granted

bull For read-write access move the DB to isolated storage

bull httpmsdnmicrosoftcomen-uslibraryhh286411(v=VS92)aspx

DEMO

copy 2011 IdentityMine Inc All Rights Reserved 12Page

Adding DB persistence

copy 2011 IdentityMine Inc All Rights Reserved 13Page

BACKGROUND TRANSFER

bull Optimized multitaskingndash Alarms Remindersndash Periodic tasksndash Background audiondash Background transfer

bull Download location must be withinsharedtransfers (in isolated storage)ndash Can be moved after download completes

copy 2011 IdentityMine Inc All Rights Reserved 14Page

BACKGROUND TRANSFER

bull Some restrictionsndash GETPOST onlyndash Maximum upload 5MBndash Maximum download over cellular 20MBndash Maximum download on battery 100MBndash Maximum 5 queued requests per appndash Maximum 2 concurrent transfers per devicendash Maximum 500 queued requests per device

DEMO

copy 2011 IdentityMine Inc All Rights Reserved 15Page

Background Transfer

DEMO

copy 2011 IdentityMine Inc All Rights Reserved 16Page

Adding and updatinga Live Tile

FURTHER INFORMATIONhttpbloggalasoftchhttpwwwgalasoftchmvvmhttpwwwidentityminecomLBugnion

THANKS

  • Windows phone 75 ldquoMangordquo Advanced
  • IdentityMine
  • Today we will
  • The MVC pattern
  • The Passive View pattern
  • Slide 6
  • More info about MVVM
  • MVVM Light Toolkit
  • demo
  • SQL CE for WP75
  • Embedding SDF
  • demo (2)
  • Background Transfer
  • Background Transfer (2)
  • demo (3)
  • demo (4)
  • Further information
  • Thanks
Page 6: WINDOWS PHONE 7.5 “MANGO” ADVANCED Laurent Bugnion Director of UX Integration IdentityMine

copy 2011 IdentityMine Inc All Rights Reserved 6Page

THE PRESENTATION MODEL PATTERN

Model View

Presentation Model

(ViewModel)

DataBinding

MVVM

copy 2011 IdentityMine Inc All Rights Reserved 7Page

MORE INFO ABOUT MVVM

bull httpwwwgalasoftchmvvmvideo1ldquoUnderstanding the MVVM patternrdquo

bull httpwwwgalasoftchmvvmvideo2ldquoDeep Dive MVVMrdquo

bull httpbloggalasoftch

copy 2011 IdentityMine Inc All Rights Reserved 8Page

MVVM LIGHT TOOLKIT

bull httpwwwgalasoftchmvvmbull httpmvvmlightcodeplexcombull Keep it smallbull Keep it simple

DEMO

copy 2011 IdentityMine Inc All Rights Reserved 9Page

MVVM Walkthrough

copy 2011 IdentityMine Inc All Rights Reserved 10Page

SQL CE FOR WP75

bull SQL CE (SDF) file in isolated storagebull No additional DLL neededbull LINQ to SQL as ORMbull Code first approach preferredbull Embedding SDF file also possible

copy 2011 IdentityMine Inc All Rights Reserved 11Page

EMBEDDING SDF

bull Create SDF file on PCbull Create entity classes with SQLMETALbull Embed SDF in XAP filendash Read-only access granted

bull For read-write access move the DB to isolated storage

bull httpmsdnmicrosoftcomen-uslibraryhh286411(v=VS92)aspx

DEMO

copy 2011 IdentityMine Inc All Rights Reserved 12Page

Adding DB persistence

copy 2011 IdentityMine Inc All Rights Reserved 13Page

BACKGROUND TRANSFER

bull Optimized multitaskingndash Alarms Remindersndash Periodic tasksndash Background audiondash Background transfer

bull Download location must be withinsharedtransfers (in isolated storage)ndash Can be moved after download completes

copy 2011 IdentityMine Inc All Rights Reserved 14Page

BACKGROUND TRANSFER

bull Some restrictionsndash GETPOST onlyndash Maximum upload 5MBndash Maximum download over cellular 20MBndash Maximum download on battery 100MBndash Maximum 5 queued requests per appndash Maximum 2 concurrent transfers per devicendash Maximum 500 queued requests per device

DEMO

copy 2011 IdentityMine Inc All Rights Reserved 15Page

Background Transfer

DEMO

copy 2011 IdentityMine Inc All Rights Reserved 16Page

Adding and updatinga Live Tile

FURTHER INFORMATIONhttpbloggalasoftchhttpwwwgalasoftchmvvmhttpwwwidentityminecomLBugnion

THANKS

  • Windows phone 75 ldquoMangordquo Advanced
  • IdentityMine
  • Today we will
  • The MVC pattern
  • The Passive View pattern
  • Slide 6
  • More info about MVVM
  • MVVM Light Toolkit
  • demo
  • SQL CE for WP75
  • Embedding SDF
  • demo (2)
  • Background Transfer
  • Background Transfer (2)
  • demo (3)
  • demo (4)
  • Further information
  • Thanks
Page 7: WINDOWS PHONE 7.5 “MANGO” ADVANCED Laurent Bugnion Director of UX Integration IdentityMine

copy 2011 IdentityMine Inc All Rights Reserved 7Page

MORE INFO ABOUT MVVM

bull httpwwwgalasoftchmvvmvideo1ldquoUnderstanding the MVVM patternrdquo

bull httpwwwgalasoftchmvvmvideo2ldquoDeep Dive MVVMrdquo

bull httpbloggalasoftch

copy 2011 IdentityMine Inc All Rights Reserved 8Page

MVVM LIGHT TOOLKIT

bull httpwwwgalasoftchmvvmbull httpmvvmlightcodeplexcombull Keep it smallbull Keep it simple

DEMO

copy 2011 IdentityMine Inc All Rights Reserved 9Page

MVVM Walkthrough

copy 2011 IdentityMine Inc All Rights Reserved 10Page

SQL CE FOR WP75

bull SQL CE (SDF) file in isolated storagebull No additional DLL neededbull LINQ to SQL as ORMbull Code first approach preferredbull Embedding SDF file also possible

copy 2011 IdentityMine Inc All Rights Reserved 11Page

EMBEDDING SDF

bull Create SDF file on PCbull Create entity classes with SQLMETALbull Embed SDF in XAP filendash Read-only access granted

bull For read-write access move the DB to isolated storage

bull httpmsdnmicrosoftcomen-uslibraryhh286411(v=VS92)aspx

DEMO

copy 2011 IdentityMine Inc All Rights Reserved 12Page

Adding DB persistence

copy 2011 IdentityMine Inc All Rights Reserved 13Page

BACKGROUND TRANSFER

bull Optimized multitaskingndash Alarms Remindersndash Periodic tasksndash Background audiondash Background transfer

bull Download location must be withinsharedtransfers (in isolated storage)ndash Can be moved after download completes

copy 2011 IdentityMine Inc All Rights Reserved 14Page

BACKGROUND TRANSFER

bull Some restrictionsndash GETPOST onlyndash Maximum upload 5MBndash Maximum download over cellular 20MBndash Maximum download on battery 100MBndash Maximum 5 queued requests per appndash Maximum 2 concurrent transfers per devicendash Maximum 500 queued requests per device

DEMO

copy 2011 IdentityMine Inc All Rights Reserved 15Page

Background Transfer

DEMO

copy 2011 IdentityMine Inc All Rights Reserved 16Page

Adding and updatinga Live Tile

FURTHER INFORMATIONhttpbloggalasoftchhttpwwwgalasoftchmvvmhttpwwwidentityminecomLBugnion

THANKS

  • Windows phone 75 ldquoMangordquo Advanced
  • IdentityMine
  • Today we will
  • The MVC pattern
  • The Passive View pattern
  • Slide 6
  • More info about MVVM
  • MVVM Light Toolkit
  • demo
  • SQL CE for WP75
  • Embedding SDF
  • demo (2)
  • Background Transfer
  • Background Transfer (2)
  • demo (3)
  • demo (4)
  • Further information
  • Thanks
Page 8: WINDOWS PHONE 7.5 “MANGO” ADVANCED Laurent Bugnion Director of UX Integration IdentityMine

copy 2011 IdentityMine Inc All Rights Reserved 8Page

MVVM LIGHT TOOLKIT

bull httpwwwgalasoftchmvvmbull httpmvvmlightcodeplexcombull Keep it smallbull Keep it simple

DEMO

copy 2011 IdentityMine Inc All Rights Reserved 9Page

MVVM Walkthrough

copy 2011 IdentityMine Inc All Rights Reserved 10Page

SQL CE FOR WP75

bull SQL CE (SDF) file in isolated storagebull No additional DLL neededbull LINQ to SQL as ORMbull Code first approach preferredbull Embedding SDF file also possible

copy 2011 IdentityMine Inc All Rights Reserved 11Page

EMBEDDING SDF

bull Create SDF file on PCbull Create entity classes with SQLMETALbull Embed SDF in XAP filendash Read-only access granted

bull For read-write access move the DB to isolated storage

bull httpmsdnmicrosoftcomen-uslibraryhh286411(v=VS92)aspx

DEMO

copy 2011 IdentityMine Inc All Rights Reserved 12Page

Adding DB persistence

copy 2011 IdentityMine Inc All Rights Reserved 13Page

BACKGROUND TRANSFER

bull Optimized multitaskingndash Alarms Remindersndash Periodic tasksndash Background audiondash Background transfer

bull Download location must be withinsharedtransfers (in isolated storage)ndash Can be moved after download completes

copy 2011 IdentityMine Inc All Rights Reserved 14Page

BACKGROUND TRANSFER

bull Some restrictionsndash GETPOST onlyndash Maximum upload 5MBndash Maximum download over cellular 20MBndash Maximum download on battery 100MBndash Maximum 5 queued requests per appndash Maximum 2 concurrent transfers per devicendash Maximum 500 queued requests per device

DEMO

copy 2011 IdentityMine Inc All Rights Reserved 15Page

Background Transfer

DEMO

copy 2011 IdentityMine Inc All Rights Reserved 16Page

Adding and updatinga Live Tile

FURTHER INFORMATIONhttpbloggalasoftchhttpwwwgalasoftchmvvmhttpwwwidentityminecomLBugnion

THANKS

  • Windows phone 75 ldquoMangordquo Advanced
  • IdentityMine
  • Today we will
  • The MVC pattern
  • The Passive View pattern
  • Slide 6
  • More info about MVVM
  • MVVM Light Toolkit
  • demo
  • SQL CE for WP75
  • Embedding SDF
  • demo (2)
  • Background Transfer
  • Background Transfer (2)
  • demo (3)
  • demo (4)
  • Further information
  • Thanks
Page 9: WINDOWS PHONE 7.5 “MANGO” ADVANCED Laurent Bugnion Director of UX Integration IdentityMine

DEMO

copy 2011 IdentityMine Inc All Rights Reserved 9Page

MVVM Walkthrough

copy 2011 IdentityMine Inc All Rights Reserved 10Page

SQL CE FOR WP75

bull SQL CE (SDF) file in isolated storagebull No additional DLL neededbull LINQ to SQL as ORMbull Code first approach preferredbull Embedding SDF file also possible

copy 2011 IdentityMine Inc All Rights Reserved 11Page

EMBEDDING SDF

bull Create SDF file on PCbull Create entity classes with SQLMETALbull Embed SDF in XAP filendash Read-only access granted

bull For read-write access move the DB to isolated storage

bull httpmsdnmicrosoftcomen-uslibraryhh286411(v=VS92)aspx

DEMO

copy 2011 IdentityMine Inc All Rights Reserved 12Page

Adding DB persistence

copy 2011 IdentityMine Inc All Rights Reserved 13Page

BACKGROUND TRANSFER

bull Optimized multitaskingndash Alarms Remindersndash Periodic tasksndash Background audiondash Background transfer

bull Download location must be withinsharedtransfers (in isolated storage)ndash Can be moved after download completes

copy 2011 IdentityMine Inc All Rights Reserved 14Page

BACKGROUND TRANSFER

bull Some restrictionsndash GETPOST onlyndash Maximum upload 5MBndash Maximum download over cellular 20MBndash Maximum download on battery 100MBndash Maximum 5 queued requests per appndash Maximum 2 concurrent transfers per devicendash Maximum 500 queued requests per device

DEMO

copy 2011 IdentityMine Inc All Rights Reserved 15Page

Background Transfer

DEMO

copy 2011 IdentityMine Inc All Rights Reserved 16Page

Adding and updatinga Live Tile

FURTHER INFORMATIONhttpbloggalasoftchhttpwwwgalasoftchmvvmhttpwwwidentityminecomLBugnion

THANKS

  • Windows phone 75 ldquoMangordquo Advanced
  • IdentityMine
  • Today we will
  • The MVC pattern
  • The Passive View pattern
  • Slide 6
  • More info about MVVM
  • MVVM Light Toolkit
  • demo
  • SQL CE for WP75
  • Embedding SDF
  • demo (2)
  • Background Transfer
  • Background Transfer (2)
  • demo (3)
  • demo (4)
  • Further information
  • Thanks
Page 10: WINDOWS PHONE 7.5 “MANGO” ADVANCED Laurent Bugnion Director of UX Integration IdentityMine

copy 2011 IdentityMine Inc All Rights Reserved 10Page

SQL CE FOR WP75

bull SQL CE (SDF) file in isolated storagebull No additional DLL neededbull LINQ to SQL as ORMbull Code first approach preferredbull Embedding SDF file also possible

copy 2011 IdentityMine Inc All Rights Reserved 11Page

EMBEDDING SDF

bull Create SDF file on PCbull Create entity classes with SQLMETALbull Embed SDF in XAP filendash Read-only access granted

bull For read-write access move the DB to isolated storage

bull httpmsdnmicrosoftcomen-uslibraryhh286411(v=VS92)aspx

DEMO

copy 2011 IdentityMine Inc All Rights Reserved 12Page

Adding DB persistence

copy 2011 IdentityMine Inc All Rights Reserved 13Page

BACKGROUND TRANSFER

bull Optimized multitaskingndash Alarms Remindersndash Periodic tasksndash Background audiondash Background transfer

bull Download location must be withinsharedtransfers (in isolated storage)ndash Can be moved after download completes

copy 2011 IdentityMine Inc All Rights Reserved 14Page

BACKGROUND TRANSFER

bull Some restrictionsndash GETPOST onlyndash Maximum upload 5MBndash Maximum download over cellular 20MBndash Maximum download on battery 100MBndash Maximum 5 queued requests per appndash Maximum 2 concurrent transfers per devicendash Maximum 500 queued requests per device

DEMO

copy 2011 IdentityMine Inc All Rights Reserved 15Page

Background Transfer

DEMO

copy 2011 IdentityMine Inc All Rights Reserved 16Page

Adding and updatinga Live Tile

FURTHER INFORMATIONhttpbloggalasoftchhttpwwwgalasoftchmvvmhttpwwwidentityminecomLBugnion

THANKS

  • Windows phone 75 ldquoMangordquo Advanced
  • IdentityMine
  • Today we will
  • The MVC pattern
  • The Passive View pattern
  • Slide 6
  • More info about MVVM
  • MVVM Light Toolkit
  • demo
  • SQL CE for WP75
  • Embedding SDF
  • demo (2)
  • Background Transfer
  • Background Transfer (2)
  • demo (3)
  • demo (4)
  • Further information
  • Thanks
Page 11: WINDOWS PHONE 7.5 “MANGO” ADVANCED Laurent Bugnion Director of UX Integration IdentityMine

copy 2011 IdentityMine Inc All Rights Reserved 11Page

EMBEDDING SDF

bull Create SDF file on PCbull Create entity classes with SQLMETALbull Embed SDF in XAP filendash Read-only access granted

bull For read-write access move the DB to isolated storage

bull httpmsdnmicrosoftcomen-uslibraryhh286411(v=VS92)aspx

DEMO

copy 2011 IdentityMine Inc All Rights Reserved 12Page

Adding DB persistence

copy 2011 IdentityMine Inc All Rights Reserved 13Page

BACKGROUND TRANSFER

bull Optimized multitaskingndash Alarms Remindersndash Periodic tasksndash Background audiondash Background transfer

bull Download location must be withinsharedtransfers (in isolated storage)ndash Can be moved after download completes

copy 2011 IdentityMine Inc All Rights Reserved 14Page

BACKGROUND TRANSFER

bull Some restrictionsndash GETPOST onlyndash Maximum upload 5MBndash Maximum download over cellular 20MBndash Maximum download on battery 100MBndash Maximum 5 queued requests per appndash Maximum 2 concurrent transfers per devicendash Maximum 500 queued requests per device

DEMO

copy 2011 IdentityMine Inc All Rights Reserved 15Page

Background Transfer

DEMO

copy 2011 IdentityMine Inc All Rights Reserved 16Page

Adding and updatinga Live Tile

FURTHER INFORMATIONhttpbloggalasoftchhttpwwwgalasoftchmvvmhttpwwwidentityminecomLBugnion

THANKS

  • Windows phone 75 ldquoMangordquo Advanced
  • IdentityMine
  • Today we will
  • The MVC pattern
  • The Passive View pattern
  • Slide 6
  • More info about MVVM
  • MVVM Light Toolkit
  • demo
  • SQL CE for WP75
  • Embedding SDF
  • demo (2)
  • Background Transfer
  • Background Transfer (2)
  • demo (3)
  • demo (4)
  • Further information
  • Thanks
Page 12: WINDOWS PHONE 7.5 “MANGO” ADVANCED Laurent Bugnion Director of UX Integration IdentityMine

DEMO

copy 2011 IdentityMine Inc All Rights Reserved 12Page

Adding DB persistence

copy 2011 IdentityMine Inc All Rights Reserved 13Page

BACKGROUND TRANSFER

bull Optimized multitaskingndash Alarms Remindersndash Periodic tasksndash Background audiondash Background transfer

bull Download location must be withinsharedtransfers (in isolated storage)ndash Can be moved after download completes

copy 2011 IdentityMine Inc All Rights Reserved 14Page

BACKGROUND TRANSFER

bull Some restrictionsndash GETPOST onlyndash Maximum upload 5MBndash Maximum download over cellular 20MBndash Maximum download on battery 100MBndash Maximum 5 queued requests per appndash Maximum 2 concurrent transfers per devicendash Maximum 500 queued requests per device

DEMO

copy 2011 IdentityMine Inc All Rights Reserved 15Page

Background Transfer

DEMO

copy 2011 IdentityMine Inc All Rights Reserved 16Page

Adding and updatinga Live Tile

FURTHER INFORMATIONhttpbloggalasoftchhttpwwwgalasoftchmvvmhttpwwwidentityminecomLBugnion

THANKS

  • Windows phone 75 ldquoMangordquo Advanced
  • IdentityMine
  • Today we will
  • The MVC pattern
  • The Passive View pattern
  • Slide 6
  • More info about MVVM
  • MVVM Light Toolkit
  • demo
  • SQL CE for WP75
  • Embedding SDF
  • demo (2)
  • Background Transfer
  • Background Transfer (2)
  • demo (3)
  • demo (4)
  • Further information
  • Thanks
Page 13: WINDOWS PHONE 7.5 “MANGO” ADVANCED Laurent Bugnion Director of UX Integration IdentityMine

copy 2011 IdentityMine Inc All Rights Reserved 13Page

BACKGROUND TRANSFER

bull Optimized multitaskingndash Alarms Remindersndash Periodic tasksndash Background audiondash Background transfer

bull Download location must be withinsharedtransfers (in isolated storage)ndash Can be moved after download completes

copy 2011 IdentityMine Inc All Rights Reserved 14Page

BACKGROUND TRANSFER

bull Some restrictionsndash GETPOST onlyndash Maximum upload 5MBndash Maximum download over cellular 20MBndash Maximum download on battery 100MBndash Maximum 5 queued requests per appndash Maximum 2 concurrent transfers per devicendash Maximum 500 queued requests per device

DEMO

copy 2011 IdentityMine Inc All Rights Reserved 15Page

Background Transfer

DEMO

copy 2011 IdentityMine Inc All Rights Reserved 16Page

Adding and updatinga Live Tile

FURTHER INFORMATIONhttpbloggalasoftchhttpwwwgalasoftchmvvmhttpwwwidentityminecomLBugnion

THANKS

  • Windows phone 75 ldquoMangordquo Advanced
  • IdentityMine
  • Today we will
  • The MVC pattern
  • The Passive View pattern
  • Slide 6
  • More info about MVVM
  • MVVM Light Toolkit
  • demo
  • SQL CE for WP75
  • Embedding SDF
  • demo (2)
  • Background Transfer
  • Background Transfer (2)
  • demo (3)
  • demo (4)
  • Further information
  • Thanks
Page 14: WINDOWS PHONE 7.5 “MANGO” ADVANCED Laurent Bugnion Director of UX Integration IdentityMine

copy 2011 IdentityMine Inc All Rights Reserved 14Page

BACKGROUND TRANSFER

bull Some restrictionsndash GETPOST onlyndash Maximum upload 5MBndash Maximum download over cellular 20MBndash Maximum download on battery 100MBndash Maximum 5 queued requests per appndash Maximum 2 concurrent transfers per devicendash Maximum 500 queued requests per device

DEMO

copy 2011 IdentityMine Inc All Rights Reserved 15Page

Background Transfer

DEMO

copy 2011 IdentityMine Inc All Rights Reserved 16Page

Adding and updatinga Live Tile

FURTHER INFORMATIONhttpbloggalasoftchhttpwwwgalasoftchmvvmhttpwwwidentityminecomLBugnion

THANKS

  • Windows phone 75 ldquoMangordquo Advanced
  • IdentityMine
  • Today we will
  • The MVC pattern
  • The Passive View pattern
  • Slide 6
  • More info about MVVM
  • MVVM Light Toolkit
  • demo
  • SQL CE for WP75
  • Embedding SDF
  • demo (2)
  • Background Transfer
  • Background Transfer (2)
  • demo (3)
  • demo (4)
  • Further information
  • Thanks
Page 15: WINDOWS PHONE 7.5 “MANGO” ADVANCED Laurent Bugnion Director of UX Integration IdentityMine

DEMO

copy 2011 IdentityMine Inc All Rights Reserved 15Page

Background Transfer

DEMO

copy 2011 IdentityMine Inc All Rights Reserved 16Page

Adding and updatinga Live Tile

FURTHER INFORMATIONhttpbloggalasoftchhttpwwwgalasoftchmvvmhttpwwwidentityminecomLBugnion

THANKS

  • Windows phone 75 ldquoMangordquo Advanced
  • IdentityMine
  • Today we will
  • The MVC pattern
  • The Passive View pattern
  • Slide 6
  • More info about MVVM
  • MVVM Light Toolkit
  • demo
  • SQL CE for WP75
  • Embedding SDF
  • demo (2)
  • Background Transfer
  • Background Transfer (2)
  • demo (3)
  • demo (4)
  • Further information
  • Thanks
Page 16: WINDOWS PHONE 7.5 “MANGO” ADVANCED Laurent Bugnion Director of UX Integration IdentityMine

DEMO

copy 2011 IdentityMine Inc All Rights Reserved 16Page

Adding and updatinga Live Tile

FURTHER INFORMATIONhttpbloggalasoftchhttpwwwgalasoftchmvvmhttpwwwidentityminecomLBugnion

THANKS

  • Windows phone 75 ldquoMangordquo Advanced
  • IdentityMine
  • Today we will
  • The MVC pattern
  • The Passive View pattern
  • Slide 6
  • More info about MVVM
  • MVVM Light Toolkit
  • demo
  • SQL CE for WP75
  • Embedding SDF
  • demo (2)
  • Background Transfer
  • Background Transfer (2)
  • demo (3)
  • demo (4)
  • Further information
  • Thanks
Page 17: WINDOWS PHONE 7.5 “MANGO” ADVANCED Laurent Bugnion Director of UX Integration IdentityMine

FURTHER INFORMATIONhttpbloggalasoftchhttpwwwgalasoftchmvvmhttpwwwidentityminecomLBugnion

THANKS

  • Windows phone 75 ldquoMangordquo Advanced
  • IdentityMine
  • Today we will
  • The MVC pattern
  • The Passive View pattern
  • Slide 6
  • More info about MVVM
  • MVVM Light Toolkit
  • demo
  • SQL CE for WP75
  • Embedding SDF
  • demo (2)
  • Background Transfer
  • Background Transfer (2)
  • demo (3)
  • demo (4)
  • Further information
  • Thanks
Page 18: WINDOWS PHONE 7.5 “MANGO” ADVANCED Laurent Bugnion Director of UX Integration IdentityMine

THANKS

  • Windows phone 75 ldquoMangordquo Advanced
  • IdentityMine
  • Today we will
  • The MVC pattern
  • The Passive View pattern
  • Slide 6
  • More info about MVVM
  • MVVM Light Toolkit
  • demo
  • SQL CE for WP75
  • Embedding SDF
  • demo (2)
  • Background Transfer
  • Background Transfer (2)
  • demo (3)
  • demo (4)
  • Further information
  • Thanks