< I S O L > 
 
 L i s t i n g   1 :   G e n e r i s c h e   M e t h o d e   z u m   A b r u f e n   e i n e s   W e r t e s ,   m i t   D e f a u l t - W e r t 
 
 p u b l i c   v a l u e T y p e   G e t V a l u e O r D e f a u l t < v a l u e T y p e > ( s t r i n g   K e y ,   v a l u e T y p e   d e f a u l t V a l u e ) 
 { 
         v a l u e T y p e   v a l u e ; 
 
         I s o l a t e d S t o r a g e S e t t i n g s   i s o l a t e d S t o r e   =   S y s t e m . I O . I s o l a t e d S t o r a g e . I s o l a t e d S t o r a g e S e t t i n g s . A p p l i c a t i o n S e t t i n g s ; 
 
         / /   I f   t h e   k e y   e x i s t s ,   r e t r i e v e   t h e   v a l u e . 
         i f   ( i s o l a t e d S t o r e . C o n t a i n s ( K e y ) ) 
         { 
                 v a l u e   =   ( v a l u e T y p e ) i s o l a t e d S t o r e [ K e y ] ; 
         } 
         / /   O t h e r w i s e ,   u s e   t h e   d e f a u l t   v a l u e . 
         e l s e 
         { 
                 v a l u e   =   d e f a u l t V a l u e ; 
         } 
 
         r e t u r n   v a l u e ; 
 } 
 
 
 L i s t i n g   2 :   G e n e r i s c h e   M e t h o d e   z u m   S p e i c h e r n   u n d   A k t u a l i s i e r e n   e i n e s   W e r t e s 
 
 p u b l i c   b o o l   A d d O r U p d a t e V a l u e ( s t r i n g   K e y ,   O b j e c t   v a l u e ) 
 { 
         b o o l   v a l u e C h a n g e d   =   f a l s e ; 
         I s o l a t e d S t o r a g e S e t t i n g s   i s o l a t e d S t o r e   =   S y s t e m . I O . I s o l a t e d S t o r a g e . I s o l a t e d S t o r a g e S e t t i n g s . A p p l i c a t i o n S e t t i n g s ; 
 
         / /   F a l l s   d e r   K e y   b e r e i t s   e x i s t i e r t 
         i f   ( i s o l a t e d S t o r e . C o n t a i n s ( K e y ) ) 
         { 
                 / /   W e n n   s i c h   d e r   W e r t   g e  n d e r t   h a t 
                 i f   ( i s o l a t e d S t o r e [ K e y ]   ! =   v a l u e ) 
                 { 
                         / /   S p e i c h e r n   d e s   n e u e n   W e r t 
                         i s o l a t e d S t o r e [ K e y ]   =   v a l u e ; 
                         v a l u e C h a n g e d   =   t r u e ; 
                 } 
         } 
         / /   A n s o n s t e n   e r s t e l l e n   d e s   n e u e n   K e y s   m i t   d e m   W e r t 
         e l s e 
         { 
                 i s o l a t e d S t o r e . A d d ( K e y ,   v a l u e ) ; 
                 v a l u e C h a n g e d   =   t r u e ; 
         } 
         r e t u r n   v a l u e C h a n g e d ; 
 } 
 
 
 L i s t i n g   3 :   M i t   < I > D e s i g n e r P r o p e r t i e s . I s I n D e s i g n T o o l < I >   l a s s e n   s i c h   d i v e r s e   B e s o n d e r h e i t e n   i m p l e m e n t i e r e n ,   d i e   n u r   z u r   E n t w u r f s z e i t   z u t r e f f e n   
 
 i f   ( D e s i g n e r P r o p e r t i e s . I s I n D e s i g n T o o l ) 
 { 
         / /   D i e s e r   C o d e   w i r d   n u r   a u s g e f  h r t ,   w e n n   d i e   A p p   g e r a d e   i n 
         / /   V i s u a l   S t u d i o   o d e r   E x p r e s s i o n   B l e n d   a n g e z e i g t   w i r d 
 
         / /   E r z e u g e n   v o n   B e i s p i e l d a t e n   i m   C o d e ,   d i e   
         L i s t < P r o d u c t D a t a >   p r o d u c t s   =   n e w   L i s t < P r o d u c t D a t a > ( ) ; 
         f o r   ( i n t   i   =   0 ;   i   <   1 0 ;   i + + ) 
         { 
                 p r o d u c t s . A d d ( n e w   P r o d u c t D a t a ( )   {   N a m e   =   " P r o d u c t   "   +   i ,   P r i c e   =   1 2 . 3 4   } ) ; 
         } 
 } 
 e l s e 
 { 
         / /   D i e s e r   C o d e   w i r d   a u s g e f  h r t ,   w e n n   d i e   A p p   w i r k l i c h   a u s g e f  h r t   w i r d 
         / /   T o   D o :   D a t e n   a u s   W e b s e r v i c e   l a d e n 
 } 
 
 
 L i s t i n g   4 :   D a s   U I   d e r   P h o t o - A p p   i n   X A M L - F o r m 
 
 < p h o n e : P h o n e A p p l i c a t i o n P a g e 
     x : C l a s s = " P h o t o S a m p l e . M a i n P a g e " 
     x m l n s = " h t t p : / / s c h e m a s . m i c r o s o f t . c o m / w i n f x / 2 0 0 6 / x a m l / p r e s e n t a t i o n " 
     x m l n s : x = " h t t p : / / s c h e m a s . m i c r o s o f t . c o m / w i n f x / 2 0 0 6 / x a m l " 
     x m l n s : p h o n e = " c l r - n a m e s p a c e : M i c r o s o f t . P h o n e . C o n t r o l s ; a s s e m b l y = M i c r o s o f t . P h o n e " 
     x m l n s : s h e l l = " c l r - n a m e s p a c e : M i c r o s o f t . P h o n e . S h e l l ; a s s e m b l y = M i c r o s o f t . P h o n e " 
     . . . 
     > 
 
     < G r i d 
         x : N a m e = " L a y o u t R o o t " 
         B a c k g r o u n d = " T r a n s p a r e n t " > 
         < I m a g e 
             x : N a m e = " p h o t o P l a c e h o l d e r "   / > 
     < / G r i d > 
 
     < p h o n e : P h o n e A p p l i c a t i o n P a g e . A p p l i c a t i o n B a r > 
         < s h e l l : A p p l i c a t i o n B a r 
             I s V i s i b l e = " T r u e " 
             I s M e n u E n a b l e d = " T r u e " > 
             < s h e l l : A p p l i c a t i o n B a r I c o n B u t t o n 
                 I c o n U r i = " / i c o n s / a p p b a r . f e a t u r e . c a m e r a . r e s t . p n g " 
                     T e x t = " T a k e   P i c t u r e "   
                     C l i c k = " t a k e P i c t u r e B u t t o n _ C l i c k " / > 
             < / s h e l l : A p p l i c a t i o n B a r > 
     < / p h o n e : P h o n e A p p l i c a t i o n P a g e . A p p l i c a t i o n B a r > 
 
 < / p h o n e : P h o n e A p p l i c a t i o n P a g e > 
 
 
 L i s t i n g   5 :   C o d e b e h i n d   z u r   P h o t o - A p p 
 
 u s i n g   M i c r o s o f t . P h o n e ; 
 u s i n g   M i c r o s o f t . P h o n e . C o n t r o l s ; 
 u s i n g   M i c r o s o f t . P h o n e . T a s k s ; 
 
 n a m e s p a c e   P h o t o S a m p l e 
 { 
     p u b l i c   p a r t i a l   c l a s s   M a i n P a g e   :   P h o n e A p p l i c a t i o n P a g e 
     { 
         C a m e r a C a p t u r e T a s k   c a m e r a ; 
         p u b l i c   M a i n P a g e ( ) 
         { 
             I n i t i a l i z e C o m p o n e n t ( ) ; 
 
             c a m e r a   =   n e w   C a m e r a C a p t u r e T a s k ( ) ; 
             / /   W a s   t u n ,   w e n n   d e r   T a s k   f e r t i g   i s t ? 
             c a m e r a . C o m p l e t e d   + =   ( s ,   e )   = > 
             { 
                 / /   W a r   d i e   A u f n a h m e   e r f o l g r e i c h ? 
                 i f   ( e . T a s k R e s u l t   = =   T a s k R e s u l t . O K ) 
                 { 
                     / /   S t r e a m   d e r   K a m e r a   i n   e i n   W r i t e a b l e B i t m a p   k o n v e r t i e r e n 
                     v a r   p h o t o   =   P i c t u r e D e c o d e r . D e c o d e J p e g ( e . C h o s e n P h o t o ) ; 
                     / /   W r i t e a b l e B i t m a p   d e m   I m a g e - S t e u e r e l e m e n t   z u w e i s e n 
                     p h o t o P l a c e h o l d e r . S o u r c e   =   p h o t o ; 
                   } 
             } ; 
         } 
 
         p r i v a t e   v o i d   t a k e P i c t u r e B u t t o n _ C l i c k ( o b j e c t   s e n d e r ,   S y s t e m . E v e n t A r g s   e ) 
         { 
             / /   A n z e i g e n   d e r   K a m e r a 
             c a m e r a . S h o w ( ) ; 
         } 
     } 
 } 
 
 
 L i s t i n g   6 :   E r m i t t e l n   v o n   P o s i t i o n s v e r  n d e r u n g e n 
 
 p u b l i c   p a r t i a l   c l a s s   M a i n P a g e   :   P h o n e A p p l i c a t i o n P a g e 
 { 
     G e o C o o r d i n a t e W a t c h e r   w a t c h e r ; 
     s t r i n g   a c c u r a c y T e x t   =   " " ; 
 
     p u b l i c   M a i n P a g e ( ) 
     { 
         I n i t i a l i z e C o m p o n e n t ( ) ; 
     } 
 
     p r i v a t e   v o i d   L o w B u t t o n C l i c k ( o b j e c t   s e n d e r ,   E v e n t A r g s   e ) 
     { 
         a c c u r a c y T e x t   =   " d e f a u l t   a c c u r a c y " ; 
         S t a r t L o c a t i o n S e r v i c e ( G e o P o s i t i o n A c c u r a c y . D e f a u l t ) ; 
     } 
 
     p r i v a t e   v o i d   H i g h B u t t o n C l i c k ( o b j e c t   s e n d e r ,   E v e n t A r g s   e ) 
     { 
         a c c u r a c y T e x t   =   " h i g h   a c c u r a c y " ; 
         S t a r t L o c a t i o n S e r v i c e ( G e o P o s i t i o n A c c u r a c y . H i g h ) ; 
     } 
 
     p r i v a t e   v o i d   S t o p B u t t o n C l i c k ( o b j e c t   s e n d e r ,   E v e n t A r g s   e ) 
     { 
         i f   ( w a t c h e r   ! =   n u l l ) 
         { 
             w a t c h e r . S t o p ( ) ; 
         } 
         S t a t u s T e x t B l o c k . T e x t   =   " l o c a t i o n   s e r v i c e   i s   o f f " ; 
         L a t i t u d e T e x t B l o c k . T e x t   =   "   " ; 
         L o n g i t u d e T e x t B l o c k . T e x t   =   "   " ; 
     } 
 
     p r i v a t e   v o i d   S t a r t L o c a t i o n S e r v i c e ( G e o P o s i t i o n A c c u r a c y   a c c u r a c y ) 
     { 
         S t a t u s T e x t B l o c k . T e x t   =   " s t a r t i n g ,   "   +   a c c u r a c y T e x t ; 
         w a t c h e r   =   n e w   G e o C o o r d i n a t e W a t c h e r ( a c c u r a c y ) ; 
         w a t c h e r . M o v e m e n t T h r e s h o l d   =   2 0 ; 
 
         w a t c h e r . S t a t u s C h a n g e d   + =   w a t c h e r _ S t a t u s C h a n g e d ; 
         w a t c h e r . P o s i t i o n C h a n g e d   + =   w a t c h e r _ P o s i t i o n C h a n g e d ; 
 
         w a t c h e r . S t a r t ( ) ; 
     } 
 
     v o i d   w a t c h e r _ S t a t u s C h a n g e d ( o b j e c t   s e n d e r ,   G e o P o s i t i o n S t a t u s C h a n g e d E v e n t A r g s   e ) 
     { 
         D e p l o y m e n t . C u r r e n t . D i s p a t c h e r . B e g i n I n v o k e ( ( )   = >   M y S t a t u s C h a n g e d ( e ) ) ; 
     } 
 
     v o i d   M y S t a t u s C h a n g e d ( G e o P o s i t i o n S t a t u s C h a n g e d E v e n t A r g s   e ) 
     { 
         s w i t c h   ( e . S t a t u s ) 
         { 
             c a s e   G e o P o s i t i o n S t a t u s . D i s a b l e d : 
                 S t a t u s T e x t B l o c k . T e x t   =   " l o c a t i o n   i s   u n s u p p o r t e d   o n   t h i s   d e v i c e " ; 
                 b r e a k ; 
             c a s e   G e o P o s i t i o n S t a t u s . I n i t i a l i z i n g : 
                 S t a t u s T e x t B l o c k . T e x t   =   " i n i t i a l i z i n g   l o c a t i o n   s e r v i c e , "   +   a c c u r a c y T e x t ; 
                 b r e a k ; 
             c a s e   G e o P o s i t i o n S t a t u s . N o D a t a : 
                 S t a t u s T e x t B l o c k . T e x t   =   " d a t a   u n a v a i l a b l e , "   +   a c c u r a c y T e x t ; 
                 b r e a k ; 
             c a s e   G e o P o s i t i o n S t a t u s . R e a d y : 
                 S t a t u s T e x t B l o c k . T e x t   =   " r e c e i v i n g   d a t a ,   "   +   a c c u r a c y T e x t ; 
                 b r e a k ; 
         } 
     } 
 
     v o i d   w a t c h e r _ P o s i t i o n C h a n g e d ( o b j e c t   s e n d e r ,   G e o P o s i t i o n C h a n g e d E v e n t A r g s < G e o C o o r d i n a t e >   e ) 
     { 
         D e p l o y m e n t . C u r r e n t . D i s p a t c h e r . B e g i n I n v o k e ( ( )   = >   M y P o s i t i o n C h a n g e d ( e ) ) ; 
     } 
 
     v o i d   M y P o s i t i o n C h a n g e d ( G e o P o s i t i o n C h a n g e d E v e n t A r g s < G e o C o o r d i n a t e >   e ) 
     { 
         L a t i t u d e T e x t B l o c k . T e x t   =   e . P o s i t i o n . L o c a t i o n . L a t i t u d e . T o S t r i n g ( " 0 . 0 0 0 " ) ; 
         L o n g i t u d e T e x t B l o c k . T e x t   =   e . P o s i t i o n . L o c a t i o n . L o n g i t u d e . T o S t r i n g ( " 0 . 0 0 0 " ) ; 
     } 
 } 
 
 
 L i s t i n g   7 :   I n t e g r a t i o n   v o n   B i n g   M a p   i n   e i n e   A p p 
   
 < p h o n e : P h o n e A p p l i c a t i o n P a g e   
         x m l n s : m y = " c l r - n a m e s p a c e : M i c r o s o f t . P h o n e . C o n t r o l s . M a p s ; a s s e m b l y = M i c r o s o f t . P h o n e . C o n t r o l s . M a p s "     
         x : C l a s s = " B i n g M a p S a m p l e . M a i n P a g e " 
         . . . > 
         < G r i d > 
                 < m y : M a p   x : N a m e = " t h e M a p " / > 
         < / G r i d > 
 < / p h o n e : P h o n e A p p l i c a t i o n P a g e > 
 
 
 L i s t i n g   8 :   D a r s t e l l e n   d e r   a k t u e l l e n   P o s i t i o n   a u f   d e r   K a r t e 
 
 G e o C o o r d i n a t e   c o o r d i n a t e   =   n e w   G e o C o o r d i n a t e ( 1 2 . 3 2 ,   5 0 . 1 2 ) ; 
 i n t   z o o m L e v e l   =   1 5 ; 
 t h e M a p . S e t V i e w ( c o o r d i n a t e ,   z o o m L e v e l ) ; 
 
 
 ! ! ! @ L i s t i n g   9 :   A u s l e s e n   v o n   N e t z w e r k i n t e r f a c e s 
 
 N e t w o r k I n t e r f a c e L i s t   N e t w o r k L i s t   =   n e w   N e t w o r k I n t e r f a c e L i s t ( ) ; 
 
 i n t   t o t a l   =   N e t w o r k L i s t . C o u n t ( ) ; 
 i n t   i   =   1 ; 
 S t r i n g B u i l d e r   s b   =   n e w   S t r i n g B u i l d e r ( ) ; 
 f o r e a c h   ( N e t w o r k I n t e r f a c e I n f o   n e t I n t e r f a c e I n f o   i n   N e t w o r k L i s t ) 
 { 
     s b . C l e a r ( ) ; 
     s b . A p p e n d L i n e ( " L a s t   U p d a t e d : "   +   D a t e T i m e . N o w . T o S t r i n g ( ) ) ; 
     s b . A p p e n d ( " I n t e r f a c e   N a m e :   " ) ; 
     s b . A p p e n d L i n e ( n e t I n t e r f a c e I n f o . I n t e r f a c e N a m e ) ; 
     s b . A p p e n d ( " I n t e r f a c e   S t a t e :   " ) ; 
     s b . A p p e n d L i n e ( n e t I n t e r f a c e I n f o . I n t e r f a c e S t a t e . T o S t r i n g ( ) ) ; 
     s b . A p p e n d ( " I n t e r f a c e   T y p e :   " ) ; 
     s b . A p p e n d L i n e ( n e t I n t e r f a c e I n f o . I n t e r f a c e T y p e . T o S t r i n g ( ) ) ; 
     s b . A p p e n d ( " I n t e r f a c e   S u b T y p e :   " ) ; 
     s b . A p p e n d L i n e ( n e t I n t e r f a c e I n f o . I n t e r f a c e S u b t y p e . T o S t r i n g ( ) ) ; 
     M e s s a g e B o x . S h o w ( s b . T o S t r i n g ( ) ,   (         S t r i n g . F o r m a t ( " N e t w o r k   I n t e r f a c e   I n f o r m a t i o n   ( { 0 }   o f   { 1 } ) " ,   i ,   t o t a l ) ,   (         M e s s a g e B o x B u t t o n . O K ) ; 
 
     i + + ; 
 } 
 
 
 L i s t i n g   1 0 :   R e a g i e r e n   a u f    n d e r u n g   d e r   S t r o m q u e l l e 
     
 p u b l i c   M a i n P a g e ( ) 
 { 
     I n i t i a l i z e C o m p o n e n t ( ) ; 
 
 / /   E v e n t h a n d l e r   f  r    n d e r u n g e n   d e r   S t r o m q u e l l e 
 D e v i c e S t a t u s . P o w e r S o u r c e C h a n g e d   + =   D e v i c e S t a t u s _ P o w e r S o u r c e C h a n g e d ; 
 
 / /   W e i t e r e   F e l d e r   d e r   D e v i c e S t a t u s - K l a s s e 
 / *   D e v i c e S t a t u s . D e v i c e M a n u f a c t u r e r ; 
 D e v i c e S t a t u s . D e v i c e N a m e ; 
 D e v i c e S t a t u s . D e v i c e F i r m w a r e V e r s i o n ; 
 D e v i c e S t a t u s . D e v i c e H a r d w a r e V e r s i o n ; 
 D e v i c e S t a t u s . D e v i c e T o t a l M e m o r y ; 
 D e v i c e S t a t u s . A p p l i c a t i o n C u r r e n t M e m o r y U s a g e ; 
 D e v i c e S t a t u s . A p p l i c a t i o n M e m o r y U s a g e L i m i t ; 
 D e v i c e S t a t u s . A p p l i c a t i o n P e a k M e m o r y U s a g e ; 
 D e v i c e S t a t u s . I s K e y b o a r d P r e s e n t ; 
 D e v i c e S t a t u s . I s K e y b o a r d D e p l o y e d ; 
 D e v i c e S t a t u s . P o w e r S o u r c e ; 
 * / 
 } 
 
 v o i d   D e v i c e S t a t u s _ P o w e r S o u r c e C h a n g e d ( o b j e c t   s e n d e r ,   E v e n t A r g s   e ) 
 { 
     / /   D a s   P o w e r S o u r c e C h a n g e d - E r e i g n i s   w i r d   n i c h t   i m   g l e i c h e n   T h r e a d 
     / /   w i e   d i e   U I   a u s g e l  s t ,   d a h e r   m u s s   D i s p a c h t e r   v e r w e n d e t   w e r d e n 
     t h i s . D i s p a t c h e r . B e g i n I n v o k e ( ( )   = > 
     { 
         p o w e r S o u r c e T e x t B l o c k . T e x t   =   D e v i c e S t a t u s . P o w e r S o u r c e . T o S t r i n g ( ) ; 
     } 
     ) ; 
 } 
 
 
 L i s t i n g   1 1 :   H e r u n t e r l a d e n   v o n   X M L - D a t e n 
 
 W e b C l i e n t   w e b c l i e n t   =   n e w   W e b C l i e n t ( ) ; 
 w e b c l i e n t . D o w n l o a d P r o g r e s s C h a n g e d   + =   ( s ,   e v )   = > 
 { 
     v a r   p e r c e n a g e   =   e v . P r o g r e s s P e r c e n t a g e ; 
     D e p l o y m e n t . C u r r e n t . D i s p a t c h e r . B e g i n I n v o k e ( ( )   = >   
     { 
         / /   U p d a t e   U I ,   m i t   P r o g r e s s   d e s   D o w n l o a d s 
     } ) ; 
 } ; 
 w e b c l i e n t . D o w n l o a d S t r i n g C o m p l e t e d   + =   ( s ,   e v )   = > 
 { 
     i f   ( e v . E r r o r   ! =   n u l l ) 
     { 
         / /   E i n   F e h l e r   i s t   a u f g e t r e t e n 
         r e t u r n ; 
     } 
     s t r i n g   d o w n l o a d e d T e x t   =   e v . R e s u l t ; 
     / /   A n z e i g e n ,   P a r s e ,   e t c . 
 } ; 
 w e b c l i e n t . D o w n l o a d S t r i n g A s y n c ( n e w   U r i ( " h t t p : / / b l o g s . m s d n . c o m / o l i v e r s / r s s . x m l " ) ) ; 
 