this.PictureImage.Source = new BitmapImage( new Uri(img, UriKind.RelativeOrAbsolute));
   Canvas.Right="10": Canvas.SetRight(stateImage, 0);
   Canvas.Bottom="0" : Canvas.SetBottom(stateImage, 0);
   :  Margin = new Thickness(20, 0, 0, 0),
     Padding="5,0,0,0":   Padding = new Thickness(5, 0, 0, 0),
        Foreground ="#333":  Foreground = new SolidColorBrush((Color )ColorConverter .ConvertFromString("#333"))
  Style = (System.Windows.Style)FindResource( "FriendPhoneStyle"),
     canvas.Background = Brushes.White;
      Background = new SolidColorBrush((Color )ColorConverter .ConvertFromString("#fff")),
 //获取文件夹的路径,放进数组中
                     path = WangCaiConfig.GetCurrentDirectory() + "RecommendPictures" ;
                     dirs = Directory.GetFiles(path);