![Page 1: Coding and designing for Windows 8 and Windows Phone 8, best practices and reusing code](https://reader035.vdocument.in/reader035/viewer/2022070315/554f71ebb4c9058a148b5385/html5/thumbnails/1.jpg)
Coding and designing for Windows 8 and Windows PhoneBest practices and reusing code
![Page 2: Coding and designing for Windows 8 and Windows Phone 8, best practices and reusing code](https://reader035.vdocument.in/reader035/viewer/2022070315/554f71ebb4c9058a148b5385/html5/thumbnails/2.jpg)
Coding and designing for Windows 8 and Windows PhoneBest practices and reusing code
Laurent BugnionSenior Director, IdentityMineMicrosoft MVP, Regional Director
![Page 3: Coding and designing for Windows 8 and Windows Phone 8, best practices and reusing code](https://reader035.vdocument.in/reader035/viewer/2022070315/554f71ebb4c9058a148b5385/html5/thumbnails/3.jpg)
multiple strategies
![Page 4: Coding and designing for Windows 8 and Windows Phone 8, best practices and reusing code](https://reader035.vdocument.in/reader035/viewer/2022070315/554f71ebb4c9058a148b5385/html5/thumbnails/4.jpg)
Sharing at source code level
CS
partialCS
partialCS
CS
partialCS
partialCS
Link to existing item
Link to existing item
XAML XAMLLink to existing item
![Page 5: Coding and designing for Windows 8 and Windows Phone 8, best practices and reusing code](https://reader035.vdocument.in/reader035/viewer/2022070315/554f71ebb4c9058a148b5385/html5/thumbnails/5.jpg)
Sharing at assembly level
Windows 8 Windows Phone
Class Library Class Library
Portable Class Library
![Page 6: Coding and designing for Windows 8 and Windows Phone 8, best practices and reusing code](https://reader035.vdocument.in/reader035/viewer/2022070315/554f71ebb4c9058a148b5385/html5/thumbnails/6.jpg)
portable class libraries
![Page 7: Coding and designing for Windows 8 and Windows Phone 8, best practices and reusing code](https://reader035.vdocument.in/reader035/viewer/2022070315/554f71ebb4c9058a148b5385/html5/thumbnails/7.jpg)
Creating a new PCL
![Page 8: Coding and designing for Windows 8 and Windows Phone 8, best practices and reusing code](https://reader035.vdocument.in/reader035/viewer/2022070315/554f71ebb4c9058a148b5385/html5/thumbnails/8.jpg)
Creating a new PCL
![Page 9: Coding and designing for Windows 8 and Windows Phone 8, best practices and reusing code](https://reader035.vdocument.in/reader035/viewer/2022070315/554f71ebb4c9058a148b5385/html5/thumbnails/9.jpg)
available for
.NET 4 and higher
.NET 4.5Silverlight 4 and higherSilverlight 5Windows Phone 7 and higherWindows Phone 7.5 and higherWindows Phone 8Windows Storeand more...
![Page 10: Coding and designing for Windows 8 and Windows Phone 8, best practices and reusing code](https://reader035.vdocument.in/reader035/viewer/2022070315/554f71ebb4c9058a148b5385/html5/thumbnails/10.jpg)
A subset
.NET Win8
Windows Phone
![Page 11: Coding and designing for Windows 8 and Windows Phone 8, best practices and reusing code](https://reader035.vdocument.in/reader035/viewer/2022070315/554f71ebb4c9058a148b5385/html5/thumbnails/11.jpg)
mvvm to decouple
![Page 12: Coding and designing for Windows 8 and Windows Phone 8, best practices and reusing code](https://reader035.vdocument.in/reader035/viewer/2022070315/554f71ebb4c9058a148b5385/html5/thumbnails/12.jpg)
Windows Phone
Windows 8
Portable Class Library
mvvm and pcl
Model
Helpers
ViewModel
Model
Helpers
ViewModel
View
Model
Helpers
ViewModel
View
![Page 13: Coding and designing for Windows 8 and Windows Phone 8, best practices and reusing code](https://reader035.vdocument.in/reader035/viewer/2022070315/554f71ebb4c9058a148b5385/html5/thumbnails/13.jpg)
the libraries
Microsoft.BCLMicrosoft.Net.HttpNewtonsoft.JsonPortable.CommonServiceLocatorPortable.MvvmLightLibsand many more...
Convenient with Nuget...but make sure you have a recent version!
![Page 14: Coding and designing for Windows 8 and Windows Phone 8, best practices and reusing code](https://reader035.vdocument.in/reader035/viewer/2022070315/554f71ebb4c9058a148b5385/html5/thumbnails/14.jpg)
demo: building a shared app
![Page 15: Coding and designing for Windows 8 and Windows Phone 8, best practices and reusing code](https://reader035.vdocument.in/reader035/viewer/2022070315/554f71ebb4c9058a148b5385/html5/thumbnails/15.jpg)
http://blog.galasoft.chhttp://www.galasoft.ch
http://www.identitymine.com
@LBugnion