Я новичок в анимации Windows Phone и использую приведенный ниже код, но он дает мне ошибку компиляции:
'System.Windows.Controls.Button' не содержит определения для 'BeginAnimation', и нет метода расширения 'BeginAnimation', принимающего первый аргумент типа 'System.Windows.Controls.Button' (вы пропустили директива об использовании или ссылка на сборку?)
Какую ссылку мне не хватает?
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;
private void button1_Click(object sender, RoutedEventArgs e)
{
DoubleAnimation da = new DoubleAnimation();
da.From = 30;
da.To = 100;
da.Duration = new Duration(TimeSpan.FromSeconds(1));
button1.BeginAnimation(Button.HeightProperty, da);
}