快速的银色模板从底部拉开窗户 [英] quick silver template stretches off the window from bottom

查看:50
本文介绍了快速的银色模板从底部拉开窗户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我在编码器中使用QuickSilver模板,问题是当它进入全屏时,电影底部的四分之一延伸出来(它走出窗外)。即使我禁用拉伸模式,它仍然会做同样的事情。可能是什么问题?

I'm using the QuickSilver template in encoder, the problem is when it goes to full screen, one fourth of bottom of the movie stretches out (it goes out of the window). even when I disable the stretch mode it still does the same thing. what could be the problem?

推荐答案

为了解决这个问题,您需要创建一个QuikSilver模板的自定义版本。    我的博文:

http://blogs.msdn.com/b/randyoakley/archive/2010/06/21/making-a-simple-使用-外观变化到一个表达编码器-4-模板表达 - 共混 - 4.aspx
功能包含有关如何执行此操作的说明(使用"清除"模板" - 但它会为您提供
的想法)。

In order to fix this you will need to create a custom version of the QuikSilver template.    My blog post: http://blogs.msdn.com/b/randyoakley/archive/2010/06/21/making-a-simple-appearance-change-to-an-expression-encoder-4-template-using-expression-blend-4.aspx  contains instructions on how to do this (using the "Clean" template" -- but it will give you the idea).

一旦有了自定义副本QuikSilver模板可以解决问题的最简单方法是找到并删除下面列出的Page.XAML中突出显示的线条:

Once you have a custom copy of the QuikSilver template the simplest change you can make to fix the problem is to find and delete the highlighted lines lines from Page.XAML listed below:

....

< VisualState x:Name =" enterFullScreen">

    <故事板>

        < DoubleAnimationUsingKeyFrames BeginTime =" 00:00:00"" Storyboard.TargetName = QUOT;视频窗口" Storyboard.TargetProperty ="(UIElement.RenderTransform)。(TransformGroup.Children)[0]。(ScaleTransform.ScaleX)">

       &NBSP;&NBSP;&NBSP;&NBSP;&NBSP; < SplineDoubleKeyFrame KeyTime =" 00:00:00.1000000"值=" 1.054" />

        < / DoubleAnimationUsingKeyFrames>

        < DoubleAnimationUsingKeyFrames BeginTime =" 00:00:00"" Storyboard.TargetName = QUOT;视频窗口" Storyboard.TargetProperty ="(UIElement.RenderTransform)。(TransformGroup.Children)[0]。(ScaleTransform.ScaleY)">

       &NBSP;&NBSP;&NBSP;&NBSP;&NBSP; < SplineDoubleKeyFrame KeyTime =" 00:00:00.1000000"值=" 1.251" />

        < / DoubleAnimationUsingKeyFrames>

        < DoubleAnimationUsingKeyFrames BeginTime =" 00:00:00"" Storyboard.TargetName = QUOT;视频窗口" Storyboard.TargetProperty ="(UIElement.RenderTransform)。(TransformGroup.Children)[3]。(TranslateTransform.X)">

       &NBSP;&NBSP;&NBSP;&NBSP;&NBSP; < SplineDoubleKeyFrame KeyTime =" 00:00:00.1000000"值=" -2" />

        < / DoubleAnimationUsingKeyFrames>

        < DoubleAnimationUsingKeyFrames BeginTime =" 00:00:00"" Storyboard.TargetName = QUOT;视频窗口" Storyboard.TargetProperty ="(UIElement.RenderTransform)。(TransformGroup.Children)[3]。(TranslateTransform.Y)">

       &NBSP;&NBSP;&NBSP;&NBSP;&NBSP; < SplineDoubleKeyFrame KeyTime =" 00:00:00.1000000"值=" 30.5" />

        < / DoubleAnimationUsingKeyFrames>

 
       < DoubleAnimationUsingKeyFrames BeginTime =" 00:00:00"" Storyboard.TargetName = QUOT; playerControls" Storyboard.TargetProperty ="(UIElement.Opacity)">

            < SplineDoubleKeyFrame KeyTime =" 00:00:00.2000000"值=" 0" />

        < / DoubleAnimationUsingKeyFrames>

... 

....
<VisualState x:Name="enterFullScreen">
    <Storyboard>
        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="videoWindow" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
            <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="1.054"/>
        </DoubleAnimationUsingKeyFrames>
        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="videoWindow" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)">
            <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="1.251"/>
        </DoubleAnimationUsingKeyFrames>
        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="videoWindow" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)">
            <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="-2"/>
        </DoubleAnimationUsingKeyFrames>
        <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="videoWindow" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)">
            <SplineDoubleKeyFrame KeyTime="00:00:00.1000000" Value="30.5"/>
        </DoubleAnimationUsingKeyFrames>
 
       <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="playerControls" Storyboard.TargetProperty="(UIElement.Opacity)">
            <SplineDoubleKeyFrame KeyTime="00:00:00.2000000" Value="0"/>
        </DoubleAnimationUsingKeyFrames>
... 

 


这篇关于快速的银色模板从底部拉开窗户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆