private void Window_Loaded(object sender, RoutedEventArgs e) { string text = ""; if (_rAnimation != null) { text += "Анімація повороту тексту \n"; var rt = new RotateTransform(); TextBoxReview.RenderTransform = rt; rt.BeginAnimation(RotateTransform.AngleProperty, _rAnimation); } if (_cAnimation != null) { text += "Анімація кольору шрифту \n"; var scb = new SolidColorBrush(); TextBoxReview.Foreground = scb; scb.BeginAnimation(SolidColorBrush.ColorProperty, _cAnimation); } if (_tAnimation != null) { text += "Анімація прозорості \n"; TextBoxReview.BeginAnimation(OpacityProperty, _tAnimation); } if (_sAnimation != null) { text += "Анімація розміру шрифту \n"; TextBoxReview.BeginAnimation(FontSizeProperty, _sAnimation); } if (text == "") { text = "Над текстом не застосовано жодного ефекту"; } TextBoxReview.Text = text; }
private void BtnResetReview_Click(object sender, EventArgs e) { TextBoxReview.Clear(); }