@@ -118,7 +118,7 @@ private void PSavedTimer_Tick(object sender, EventArgs e)
118118 PSavedTimer . Stop ( ) ;
119119 Storyboard storyboard = new Storyboard ( ) ;
120120 //Slowly make it white again.
121- storyboard . Children . Add ( initColorAnimation ( PSaveBtn , Colors . Lime , Colors . White , new TimeSpan ( 0 , 0 , 0 ) , new TimeSpan ( 0 , 0 , 2 ) , "Foreground.(SolidColorBrush.Color)" ) ) ;
121+ storyboard . Children . Add ( InitColorAnimation ( PSaveBtn , Colors . Lime , Colors . White , new TimeSpan ( 0 , 0 , 0 ) , new TimeSpan ( 0 , 0 , 2 ) , "Foreground.(SolidColorBrush.Color)" ) ) ;
122122 storyboard . Begin ( ) ;
123123 }
124124 private async void NSaveBtn_Click ( object sender , RoutedEventArgs e )
@@ -138,7 +138,7 @@ private void NSavedTimer_Tick(object sender, EventArgs e)
138138 {
139139 NSavedTimer . Stop ( ) ;
140140 Storyboard storyboard = new Storyboard ( ) ;
141- storyboard . Children . Add ( initColorAnimation ( NSaveBtn , Colors . Lime , Colors . White , new TimeSpan ( 0 , 0 , 0 ) , new TimeSpan ( 0 , 0 , 2 ) , "Foreground.(SolidColorBrush.Color)" ) ) ;
141+ storyboard . Children . Add ( InitColorAnimation ( NSaveBtn , Colors . Lime , Colors . White , new TimeSpan ( 0 , 0 , 0 ) , new TimeSpan ( 0 , 0 , 2 ) , "Foreground.(SolidColorBrush.Color)" ) ) ;
142142 storyboard . Begin ( ) ;
143143 }
144144 #endregion
@@ -188,7 +188,7 @@ private void NListChanged(object sender, SelectionChangedEventArgs e)
188188 { }
189189 }
190190
191- private ColorAnimation initColorAnimation ( UIElement uIElement , Color from , Color to , TimeSpan beginTime , TimeSpan duration , string propertyPath )
191+ private ColorAnimation InitColorAnimation ( UIElement uIElement , Color from , Color to , TimeSpan beginTime , TimeSpan duration , string propertyPath )
192192 {
193193 ColorAnimation colorAnimation = new ColorAnimation { From = from , To = to , BeginTime = beginTime , Duration = duration } ;
194194 Storyboard . SetTarget ( colorAnimation , uIElement ) ;
@@ -207,5 +207,10 @@ private void NList_MouseUp(object sender, MouseButtonEventArgs e)
207207 if ( e . ChangedButton == MouseButton . Right )
208208 ( ( ListBox ) ( ( Grid ) Content ) . Children [ 3 ] ) . SelectedIndex = - 1 ;
209209 }
210+
211+ private void UserControl_KeyDown ( object sender , KeyEventArgs e )
212+ {
213+ if ( Keyboard . IsKeyDown ( Key . LeftCtrl ) ) ;
214+ }
210215 }
211216}
0 commit comments