[Windows Phone 8] How to draw a rectangle?

[Windows Phone 8] How to draw a rectangle?


Summary

When we want to make some pattern in the above Windows Phone, how to make it?

Today, to teach you how to use the Rectangle to make a different rectangle.

Rectangle most of the property is inherited from Shape, and Shape attributes are as follows

Fill: to fill the internal graphic representation of the brush

Stretch: Graphical representation of how to fill the space distribution

Stroke: a graphical representation brush outline

StrokeDashArray: the broken line indicates the figure outline gap pattern

StrokeDashCap: showing how to draw a broken line ends

StrokeDashOffset: represents the distance from the starting mode setting dotted line

StrokeEndLineCap: shows the shape of the trailing end of a straight line

StrokeLineJoin: Graphic shows how the inter-connection points

detailed data

1. Start a new project

1

2. division Grid

Picture 5

3. MainPage.xaml built into different types of rectangular

Picture 6

Picture 7

Picture 8

Picture 9

Picture 10

Picture 11


 
  
  
    
  
  
        
   
   
            
    
    
            
    
     
        
   
     
    
   
        
   
   
            
    
    
            
    
     
            
    
       
      
     
    
   

        
   
   
        
   
   

        
   
    
        
   
    

        
   
     
        
   
     
            
    
       
        
         
          
         
        
        
      
        
   
     

        
   
     
        
   
     

        
   
      
        
   
       
        
        
         
          
         
         
        
      
     
    
   
  

4. Preview

Picture 12

It is not very easy to use them! Do it yourself it ^ _ ^

I want to help ^ _ ^

If the above error, please feel free Oh! Thank you

Reference and reference

Rectangle Class - MSDN

Original: Large column  [Windows Phone 8] How to draw a rectangle?


Guess you like

Origin www.cnblogs.com/chinatrump/p/11496097.html