Animation SL5-OOB-设置主窗口动画

Animation SL5-OOB-设置主窗口动画,animation,silverlight-5.0,out-of-browser,Animation,Silverlight 5.0,Out Of Browser,我需要增大Application.Current.MainWindow的大小(当然是在运行OOB时)。 有什么方法可以在故事板中实现吗? 我可以按程序进行: private long timerCntr = 0; private void OpenBtn_OnClick(object sender, RoutedEventArgs e) { timerCntr = 0; DispatcherTimer t = new DispatcherTimer

我需要增大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
    }  
private long-timerCntr=0;
私有void OpenBtn_OnClick(对象发送方,路由目标)
{
timerCntr=0;
Dispatchermer t=新Dispatchermer();
t、 间隔=新的时间跨度(0,0,0,0,10);
t、 勾选+=(o,参数)=>
{
如果(timerCntr<100)
{
Application.Current.MainWindow.Height+=1;
userControl.Height+=1;
LayoutRoot.高度+=1;
++timerCntr;
}
其他的
{
t、 停止();
}
};
t、 Start();
OpenStory.Begin();//控制对象变得可见的不透明度
}  

谢谢你的见解

评论中的链接提供了答案。
基本上,添加一个隐藏的滑块控件;在故事板中更改滑块的值;在滑块的值中,更改处理程序更改窗口大小。

非常有用。

我认为此链接将帮助您可能不确定[StackOverFlow][1][1]:此链接非常有用,谢谢您。