Esempio n. 1
0
        private void ExecuteCommand(object parameter)
        {
            // show tile content in the preview
            FlickrPhoto photo = parameter as FlickrPhoto;

            if (photo != null)
            {
                System.Diagnostics.Process.Start(photo.Content, "_blank");
            }
        }
Esempio n. 2
0
 private void OnLoaded(object sender, RoutedEventArgs e)
 {
     if (!_isContentLoaded && this.IsVisible)
     {
         // load content once
         foreach (C1.WPF.Tile.C1Tile tile in tilePanel.Children)
         {
             FlickrPhoto.Load((string)tile.Header, tile);
         }
         _isContentLoaded = true;
     }
 }