public MainPage() { InitializeComponent(); this.DataContext = this; Init_Timer(); Source_Image = Name + Current_Image.ToString() + ".jpg"; Current_Image++; Storyboard_Visible.Begin(); }
void Timer_Tick(object sender, EventArgs e) { dem++; if (dem % 10 == 0 && dem != 0) { Source_Image = Name + Current_Image.ToString() + ".jpg"; Current_Image++; Storyboard_Visible.Begin(); dem = 0; } if (dem % 6 == 0 && dem != 0) { Storyboard_Hide.Begin(); } }