- [DataContract]
- public class WorkoutColors
- {
- [DataMember]
- public string[] myColors { get; set; }
- public WorkoutColors(params string[] customcolors)
- {
- this.myColors = customcolors;
- }
- }
- //
- code in main:
- App.WorkoutColors myWorkoutColors = new App.WorkoutColors("Violet", "OrangeRed", "Olive", "MistyRose", "LightSkyBlue");
- XAML CODE:
- <TextBlock Text="{Binding myDay}" FontSize="40" HorizontalAlignment="Left" Foreground="{Binding myColors}"/>
Undefined
By: microhaxo | Date: Oct 29 2010 20:57 | Format: None | Expires: never | Size: 577 B | Hits: 868
Latest pastes
1 hours ago
11 hours ago
1 days ago
2 days ago
2 days ago