【发布时间】:2013-04-03 23:16:11
【问题描述】:
我需要增大 Application.Current.MainWindow 的大小(当然,在运行 OOB 时)。
有没有办法在情节提要中做到这一点?
我可以以编程方式做到这一点:
private long timerCntr = 0;
private void OpenBtn_OnClick(object sender, RoutedEventArgs e)
{
timerCntr = 0;
DispatcherTimer t = new DispatcherTimer();
t.Interval = new TimeSpan(0, 0, 0, 0, 10);
t.Tick += (o, args) =>
{
if (timerCntr < 100)
{
Application.Current.MainWindow.Height += 1;
userControl.Height += 1;
LayoutRoot.Height += 1;
++timerCntr;
}
else
{
t.Stop();
}
};
t.Start();
OpenStory.Begin(); // Controls opacity of object becoming visible
}
感谢您的任何见解...
【问题讨论】:
-
我认为此链接可能会帮助您不确定 [StackOverFlow][1] [1]:stackoverflow.com/questions/2527490/…
-
那个链接很有帮助,谢谢 JR。
标签: animation silverlight-5.0 out-of-browser