Public paste
Undefined
By: microhaxo | Date: Oct 29 2010 20:57 | Format: None | Expires: never | Size: 577 B | Hits: 809

  1. [DataContract]
  2.         public class WorkoutColors
  3.         {
  4.             [DataMember]
  5.             public string[] myColors { get; set; }
  6.             public WorkoutColors(params string[] customcolors)
  7.             {
  8.  
  9.                 this.myColors = customcolors;
  10.                
  11.             }
  12.         }
  13.  
  14. //
  15. code in main:
  16. App.WorkoutColors myWorkoutColors = new App.WorkoutColors("Violet", "OrangeRed", "Olive", "MistyRose", "LightSkyBlue");
  17.  
  18. XAML CODE:
  19. <TextBlock Text="{Binding myDay}" FontSize="40" HorizontalAlignment="Left" Foreground="{Binding myColors}"/>